-
WSJanB
AskWoody LoungerIt is possible to set a specific tab as the default when opening a dialog:
Dialogs(wdDialogFileNew).DefaultTab = xxx
As soon as you type the “=” you get a pop-up list with all the possibilities. Unfortunately this list contains all tabs, not just the ones for the dialog you want (wdDialogFileNew in this case).
Hope this helps.
JanB
-
WSJanB
AskWoody LoungerI’ll give you an example:
Public Sub HandleFormXYZ()
Load frmFormXYZ
With frmFormXYZ
.opt1.Caption = “One”
.opt2.Caption = “Two”
.opt3.Caption = “Three”
.txtBox.txt = “Example”
End WithfrmFormXYZ.Show
‘Rest of code
End SubI hope this clears up what I meant.
Thanks
JanB -
WSJanB
AskWoody LoungerI’ll give you an example:
Public Sub HandleFormXYZ()
Load frmFormXYZ
With frmFormXYZ
.opt1.Caption = “One”
.opt2.Caption = “Two”
.opt3.Caption = “Three”
.txtBox.txt = “Example”
End WithfrmFormXYZ.Show
‘Rest of code
End SubI hope this clears up what I meant.
Thanks
JanB -
WSJanB
AskWoody LoungerJanuary 26, 2004 at 1:32 pm in reply to: FileSaveAs ‘fix’ causes problem with conversion (Win 98 / Word 97 (both Dutch)) #774277Thanks Hans! I found the help item you were referring to.
JanB
-
WSJanB
AskWoody LoungerJanuary 26, 2004 at 1:32 pm in reply to: FileSaveAs ‘fix’ causes problem with conversion (Win 98 / Word 97 (both Dutch)) #774278Thanks Hans! I found the help item you were referring to.
JanB
-
WSJanB
AskWoody LoungerSorry, that didn’t work.
The form is loaded first and Initialize fired, then changes are made to radiobuttons and textboxes, overriding the Setfocus in Initialize. I also tried to explicitly Setfocus on the last object changed in the form before activating it with Show, but that didn’t help.During the test a collegue told me that he experienced a similar problem with one of the Lotus Notes panels. So maybe it’s not a Word XP/2003 or VBA problem, but a Windows XP issue…?
Thanks anyway!
JanB -
WSJanB
AskWoody LoungerSorry, that didn’t work.
The form is loaded first and Initialize fired, then changes are made to radiobuttons and textboxes, overriding the Setfocus in Initialize. I also tried to explicitly Setfocus on the last object changed in the form before activating it with Show, but that didn’t help.During the test a collegue told me that he experienced a similar problem with one of the Lotus Notes panels. So maybe it’s not a Word XP/2003 or VBA problem, but a Windows XP issue…?
Thanks anyway!
JanB -
WSJanB
AskWoody LoungerJanuary 26, 2004 at 12:42 pm in reply to: FileSaveAs ‘fix’ causes problem with conversion (Win 98 / Word 97 (both Dutch)) #774251Thanks for your input, Jefferson, that does the trick!
I looked for something along that line, but could not find a suitable property for the dialog panel. And when I placed the dot and “f” after Dialogs(wdDialogFileSaveAs) there was no Format property in the list. A hidden feature?JanB
-
WSJanB
AskWoody LoungerJanuary 26, 2004 at 12:42 pm in reply to: FileSaveAs ‘fix’ causes problem with conversion (Win 98 / Word 97 (both Dutch)) #774250Thanks for your input, Jefferson, that does the trick!
I looked for something along that line, but could not find a suitable property for the dialog panel. And when I placed the dot and “f” after Dialogs(wdDialogFileSaveAs) there was no Format property in the list. A hidden feature?JanB
-
WSJanB
AskWoody LoungerThanks Jefferson. I’ll give it a try.
JanB
-
WSJanB
AskWoody LoungerThanks Jefferson. I’ll give it a try.
JanB
-
WSJanB
AskWoody LoungerThanks for the suggestion. I tried that too. Both manually and with VBA Code Cleaner. No joy.
As I said in my original posting, the forms appears to have the focus (i.e. color of title bar). A thought: in Word 97 all forms are modal and I know that this is not the case in Word XP / 2003. Can this have any bearing on the problem? If so, what can be done to make sure the forms behave like a modal form in Word 97? (I can’t use the test PC’s today to experiment on the matter.)JanB
-
WSJanB
AskWoody LoungerThanks for the suggestion. I tried that too. Both manually and with VBA Code Cleaner. No joy.
As I said in my original posting, the forms appears to have the focus (i.e. color of title bar). A thought: in Word 97 all forms are modal and I know that this is not the case in Word XP / 2003. Can this have any bearing on the problem? If so, what can be done to make sure the forms behave like a modal form in Word 97? (I can’t use the test PC’s today to experiment on the matter.)JanB
-
WSJanB
AskWoody LoungerThe user-templates don’t contain any code or form. All forms and code are in a seperate code-template sitting in the Word Startup directory, so they can be used in any template throughout the session of Word. There are 9 forms, 7 of which are called by a Sub activated by a click on a button in a commandbar and 2 are called by a FormField ExitMacro. The forms contain radiobuttons and/or textboxes for user choices/input. Most of them just have a OK-button and no Cancel-button to force the user input. For that reason they contain a Private Sub UserForm_QueryClose to prevent closing the form with the X-button.
Usually the form is first Loaded, changes to radiobuttons and textboxes are made based on former input or standards, then the form is activated (frmName.Show). The form-code usually is limited to Private Sub cmdOK_Click and, if appropriate, Private Sub cmdCancel_Click, both hiding the form. In 2 cases there is a Private Sub Userform_Initialize, resetting a few values. Then the calling Sub is reading and handling the results from the form, followed by a Unload of the Form.
I’ve tested it on 2 different (hardware) PC’s with Windows XP Pro SP1 and Office XP / 2003 (all Dutch versions) and nothing else installed. The phenomenon is consistent on both PC’s. Closing and restarting Word as Jefferson suggested and rebooting the PC’s don’t make any difference.Thanks
JanB -
WSJanB
AskWoody LoungerThe user-templates don’t contain any code or form. All forms and code are in a seperate code-template sitting in the Word Startup directory, so they can be used in any template throughout the session of Word. There are 9 forms, 7 of which are called by a Sub activated by a click on a button in a commandbar and 2 are called by a FormField ExitMacro. The forms contain radiobuttons and/or textboxes for user choices/input. Most of them just have a OK-button and no Cancel-button to force the user input. For that reason they contain a Private Sub UserForm_QueryClose to prevent closing the form with the X-button.
Usually the form is first Loaded, changes to radiobuttons and textboxes are made based on former input or standards, then the form is activated (frmName.Show). The form-code usually is limited to Private Sub cmdOK_Click and, if appropriate, Private Sub cmdCancel_Click, both hiding the form. In 2 cases there is a Private Sub Userform_Initialize, resetting a few values. Then the calling Sub is reading and handling the results from the form, followed by a Unload of the Form.
I’ve tested it on 2 different (hardware) PC’s with Windows XP Pro SP1 and Office XP / 2003 (all Dutch versions) and nothing else installed. The phenomenon is consistent on both PC’s. Closing and restarting Word as Jefferson suggested and rebooting the PC’s don’t make any difference.Thanks
JanB
![]() |
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
-
Windows 11 and Trial version of MS Office
by
Tex265
39 minutes ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
54 minutes ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
57 minutes ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
1 hour, 1 minute ago -
Limits on User Names
by
CWBillow
4 hours, 52 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
21 minutes ago -
Non Apple Keyboards
by
pmcjr6142
14 hours, 41 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
2 hours, 40 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
4 hours, 37 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
19 hours, 10 minutes ago -
default apps
by
chasfinn
18 hours, 51 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
1 day, 2 hours ago -
Adding links to text in Word 2000
by
sgeneris
18 hours, 47 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
20 hours, 25 minutes ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
10 hours, 22 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
1 day, 7 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
16 hours, 16 minutes ago -
Planning ahead for migration
by
Susan Bradley
11 hours, 15 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
19 hours ago -
Is Spectrum discontinuing email service?
by
Peobody
22 hours, 31 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
19 hours, 4 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
23 hours, 16 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
19 hours, 47 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
3 days, 5 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
3 days, 17 hours ago -
Problem using exfat drives for backup
by
Danmc
3 days, 17 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
2 days, 19 hours ago -
Change Info in the Settings window
by
CWBillow
4 days ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
4 days, 6 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
3 days, 16 hours ago
Recent blog posts
Key Links
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.