-
WSDoryO
AskWoody LoungerWhat happens when you start Word and File…Save…and scroll in the folder list? Same thing?
I wonder if it’s the scrolling or the Open or what???
-
WSDoryO
AskWoody LoungerJune 20, 2002 at 4:25 am in reply to: 2 problems exporting Access reports to rtf format (Access97) #595918It is almost impossible to get a good RTF output of an Access report. The RTFdocument does it’s best but something is always out-of-whack. Rules disappear, line spacing changes pulling the footers up about an inch or 2, memos get truncated because word-wrap is different but field “height” is fixed, hard returns appear, etc… Which is why Microsoft added the File…Export…Save As…Snapshot and the Snapshot Viewer. It’s like a PDF. It retains formatting, unlike RTF export.
You’re probably going to have to compromise somewhere along the line. Microsoft does have a fix for the truncation problem with Memo fields in Access 2000 you can download:
http://support.microsoft.com/search/previe…b;en-us;Q281153%5B/url%5D
-
WSDoryO
AskWoody LoungerWe set up a macro that dumps out all the Autotext names and entries. By using a Style (GreenUglyCourier) for the Autotext name and no style for the actual Autotext content it’s easy to separate the two while reviewing. We added an “Update Autotext” macro that lets the user make changes to the Autotext contents right in the doc and then click a button to update it. Update macro:
1. Checks to see if you’re on text that has style GreenUglyCourier (if not then quit w/msg)
2. Selects and stores current line text (this is the name of the Autotext)
3. Goto next line down, select down line by line until it hits a GreenUglyCourier style line.
4. Store Selection as Autotext name.
5. Move down a line to the next Autotext so user can click macro button again to update the next Autotext.This process makes it really easy for our end users to update a bunch of Autotexts. Two buttons:
1. Deletes everything in the current doc and then types all Autotext names/contents
2. Update currently highlighted Autotext. -
WSDoryO
AskWoody LoungerSorry. It gives me the heebie-jeebies to think that the DOBs are already available but will be retyped — as text. Whatever. As long as Tammy’s happy and find it a brilliant solution, that’s what counts!
(The old Copy…PasteSpecial…Values trick would let you remove the Date of Birth column after calculating the “yearless Birthday” text, if necessary.)
-
WSDoryO
AskWoody LoungerWhile your waiting, see what you think of this method.
Since you have headers and total rows where column C is blank you don’t want to hide ALL rows where C is blank, just those in the data area of your spreadsheet. So give that area a range name. It’ll grow as you add new employees to the sheet. Or you can just specify the exact rows to “trim down”.Sub PrintNonBlankDataRows() 'These two rows figure out which rows to check for blanks 'You need to select the print area to "trim down" and name it Data FirstRow = Range("Data").Row For iRow = FirstRow To FirstRow + Range("data").Rows.Count 'If you just want to specify rows by number, use comment out lines above and use this line: 'For iRow = 14 To 36 If Range("C" & iRow) = "" Then Rows(iRow).EntireRow.Hidden = True End If Next iRow 'Print or print preview ActiveWindow.SelectedSheets.PrintPreview 'Unhide rows ActiveSheet.Rows.EntireRow.Hidden = False End Sub
-
WSDoryO
AskWoody LoungerSorry, if I misunderstood the question. It did mention “user input” — something that normally requires the user to be present and accounted for at the computer when it runs. Maybe its just supposed to fly up onto the screen once and hour and ask them something.
Sometimes people ask for a specific technical solution without explaining what their real goals are and I take them too literally and provide misleading info. “Automatically” running a program sure sounds like unattended running — but maybe what the poster really means is “don’t make my user open Excel and then open a file and then click a macro button”. I don’t know. Maybe we’ll find out….Kevin?
-
WSDoryO
AskWoody LoungerTo set the focus to the Listbox itself all you need is:
lstSpeed.SetFocus
To set the default selected line in the list box:
If the form is a data entry form with a listbox “bound” to a field, define a default for the field in the table. Then it will automatically appear selected in the listbox when you add a new record. You don’t want to wreck the existing record when they display in the form by forcing the listbox value to change.
If your listbox is NOT displaying database field, just getting user input (not bound to a dataset) then try this:
List0.SetFocus
List0.ListIndex = 1If I don’t setfocus first I get an error message. If you don’t want that to be the selected control than add another line to setfocus to another field. This may not be the best way but it’s workin’
-
WSDoryO
AskWoody Lounger -
WSDoryO
AskWoody LoungerSub ChangeDocTitle() 'Get the title from fields, prompts, date, etc...whatever! newTitle = ActiveDocument.FormFields("AnyFormField").Result With Dialogs(wdDialogFileSummaryInfo) .Title = newTitle .Execute End With End Sub
Don’t bother trying to set the Title property directly in VB. If you don’t go through the dialog box it doesn’t always work. V. frustrating.
-
WSDoryO
AskWoody LoungerJune 19, 2002 at 10:18 pm in reply to: Count unique records based on criteria of 2nd colu (Excel(2000)) #595864Pivot Table. Definitely. Especially if some household acquires a pet alligator or hedgehog. Pivots automatically expand.
-
WSDoryO
AskWoody LoungerAre you trying to find a way to enter a checkmark character with a shortcut? I don’t even have that character in my Insert…Symbol…unless I use the Wingding font on character:
-
WSDoryO
AskWoody LoungerTry not using the wizard. It does irritating things like setting up relationships between your lookup field and the source table without telling you. It includes an ID field in the lookup row source even though you didn’t select it.
Instead set up the lookup yourself on the bottom part of the (Table Design?) screen. Choose the tab called “Lookup” instead of General. You can fill these fields in yourself.
Display type: Combobox
Row source type: Table/Query
Row source: SELECT Customers.CompanyName FROM Customers ORDER BY Customers.CompanyName;
(You can use the query builder to design this SQL graphically by clicking the […] button here)
columns, etc… -
WSDoryO
AskWoody Lounger..
-
WSDoryO
AskWoody LoungerEdited by DoryO on 19-Jun-02 16:38.
I have to agree with John. As soon as someone utters “we don’t need those entered as dates, text is fine” someone asks for a new report by date. Also, your users won’t enter something goofy like “06-31″ which is not a valid date.
How about a sorting column filled with this formula (if Col A has the true dates):
=TEXT(A1,”mm-dd”)
This returns text you can sort by regardless of year.
{Edit: I just noticed a previous post with similar suggestion. Sorry to repeat it. But, seriously, Tammy — avoid that leading-apostrophe method of entering values as text. It seduces so many.}
-
WSDoryO
AskWoody LoungerEdited by DoryO on 19-Jun-02 16:22.
Sub Proper_Case()
‘ Loop to cycle through each cell in the specified range.
‘ There is not a Proper function in Visual Basic for Applications.
‘ So, you must use the worksheet function in the following form:For Each x In Selection.Cells
x.Formula = Application.Proper(x.Formula)
NextEnd Sub
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Discover the Best AI Tools for Everything
by
Alex5723
5 hours, 55 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
42 minutes ago -
Rufus is available from the MSFT Store
by
PL1
16 hours, 54 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
19 hours, 3 minutes ago -
KB5061768 update for Intel vPro processor
by
drmark
1 hour, 28 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
17 hours, 14 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
14 hours, 48 minutes ago -
Office gets current release
by
Susan Bradley
17 hours, 26 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 7 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
1 day, 16 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 8 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 days, 18 hours ago -
X Suspends Encrypted DMs
by
Alex5723
2 days, 20 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
2 days, 20 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days, 21 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days, 21 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 10 hours ago -
Enabling Secureboot
by
ITguy
2 days, 17 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 5 hours ago -
No more rounded corners??
by
CWBillow
3 days, 1 hour ago -
Android 15 and IPV6
by
Win7and10
2 days, 15 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
3 days, 18 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 days, 20 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
3 days, 15 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 4 hours ago -
May preview updates
by
Susan Bradley
3 days, 15 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 7 hours ago -
Just got this pop-up page while browsing
by
Alex5723
3 days, 20 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
3 days, 17 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
2 days, 19 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.