My spreadsheet opens with a menu form but my users want to be able to access toolbar items
Is there a way to use a menu bar item without having to close the form first
for example if the form is displayed and a user wants to Print (which is not on the UserForm – I know it could be) they have to click a button to close the form to make the menubar items acessable
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Form focus (Office 97)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Form focus (Office 97)
- This topic has 6 replies, 4 voices, and was last updated 21 years, 2 months ago.
AuthorTopicWSclockwork
AskWoody LoungerNovember 9, 2003 at 6:15 am #396296Viewing 5 reply threadsAuthorReplies-
WSTricky
AskWoody LoungerNovember 9, 2003 at 6:38 am #741630This excerpt from one of Walkenbach’s books may help. But please note – the book I use was written for Excel2000. I noticed that you’re using 97. I really can’t say if this info will work for 97 – you may want to wait for someone else to chime in…
[indent]
In Excel 2000, a UserForm can be modeless. This means that the user doesn’t have to dismiss the UserForm before activating the workbook and doing other work in Excel. The Show method of the UserForm object defaults to displaying a modal form, meaning that the rest of Excel is suspended while the UserForm is visible. To display a modeless UserForm, use an instruction such as this:
UserForm1.Show vbModeless
The word vbModeless is a built-in constant that has a value of 0. Therefore, the effect of the following statement is identical to that of the preceeding statement:
UserForm1.Show 0
[/indent]
-
WSTricky
AskWoody LoungerNovember 9, 2003 at 6:38 am #741631This excerpt from one of Walkenbach’s books may help. But please note – the book I use was written for Excel2000. I noticed that you’re using 97. I really can’t say if this info will work for 97 – you may want to wait for someone else to chime in…
[indent]
In Excel 2000, a UserForm can be modeless. This means that the user doesn’t have to dismiss the UserForm before activating the workbook and doing other work in Excel. The Show method of the UserForm object defaults to displaying a modal form, meaning that the rest of Excel is suspended while the UserForm is visible. To display a modeless UserForm, use an instruction such as this:
UserForm1.Show vbModeless
The word vbModeless is a built-in constant that has a value of 0. Therefore, the effect of the following statement is identical to that of the preceeding statement:
UserForm1.Show 0
[/indent]
-
WSsdckapr
AskWoody LoungerNovember 9, 2003 at 10:58 am #741670In addition to suggestions of modeless form that others provided:
If there were not a lot of toolbar items that the user might want to access, you could just create buttons to call the items from the userform. Add a “Print” button, or a “print preview” or any other items they might want.
If their is no room on the form, just add one button to call a new user form which contains all the supplemental menu items.
another idea is to make your menu a new toolbar (if it only contains commands) instead a user form, and they can use these toolbars and the “normal” toolbars.
Steve
Steve
-
WSsdckapr
AskWoody LoungerNovember 9, 2003 at 10:58 am #741671In addition to suggestions of modeless form that others provided:
If there were not a lot of toolbar items that the user might want to access, you could just create buttons to call the items from the userform. Add a “Print” button, or a “print preview” or any other items they might want.
If their is no room on the form, just add one button to call a new user form which contains all the supplemental menu items.
another idea is to make your menu a new toolbar (if it only contains commands) instead a user form, and they can use these toolbars and the “normal” toolbars.
Steve
Steve
-
WSSammyB
AskWoody LoungerMarch 13, 2004 at 3:33 pm #741648(Edited by Leif on 13-Mar-04 16:33. to update link to http://www.bmsltd.ie/)
Excel only started supporting modeless forms with XL2K. But, thanks to a bug in XL97, it actually can be done, but it’s not a good idea. There is a link to ModelessForm.zip on Stephen Bullen’s Excel Page that shows how it can be done. I actually think that I delivered code like this to a customer who has never complained, so maybe it is safe.
HTH –Sam
-
WSSammyB
AskWoody LoungerMarch 13, 2004 at 3:33 pm #741649(Edited by Leif on 13-Mar-04 16:33. to update link to http://www.bmsltd.ie/)
Excel only started supporting modeless forms with XL2K. But, thanks to a bug in XL97, it actually can be done, but it’s not a good idea. There is a link to ModelessForm.zip on Stephen Bullen’s Excel Page that shows how it can be done. I actually think that I delivered code like this to a customer who has never complained, so maybe it is safe.
HTH –Sam
Viewing 5 reply threads -

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
-
*Some settings are managed by your organization
by
rlowe44
9 hours, 5 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
11 hours, 19 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
11 hours, 44 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
20 hours, 44 minutes ago -
AI slop
by
Susan Bradley
19 hours, 55 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
22 hours, 1 minute ago -
Two blank icons
by
CR2
7 hours, 35 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 6 hours ago -
End of 10
by
Alex5723
1 day, 9 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
7 hours, 30 minutes ago -
test post
by
gtd12345
1 day, 15 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 5 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
21 hours, 50 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 19 hours ago -
Upgrading from Win 10
by
WSjcgc50
7 hours, 40 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
11 hours, 13 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 11 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 23 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 13 hours ago -
Are manuals extinct?
by
Susan Bradley
7 hours, 16 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 22 hours ago -
Network Issue
by
Casey H
2 days, 9 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 10 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 11 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 13 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 13 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 15 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 15 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 22 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
7 hours, 46 minutes 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.