-
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)) #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 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 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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
8 hours, 28 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
4 hours, 12 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
7 hours, 2 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
7 hours, 11 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
7 hours, 54 minutes ago -
Rufus is available from the MSFT Store
by
PL1
5 hours, 23 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 8 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
14 hours, 39 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
10 hours, 50 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 3 hours ago -
Office gets current release
by
Susan Bradley
1 day, 6 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 20 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 5 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 21 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 7 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 9 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 9 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 10 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 11 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 23 hours ago -
Enabling Secureboot
by
ITguy
3 days, 6 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 19 hours ago -
No more rounded corners??
by
CWBillow
3 days, 14 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 4 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 7 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 10 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days, 4 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 17 hours ago -
May preview updates
by
Susan Bradley
4 days, 4 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 20 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.