Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help using form as menu


I am trying to use an Excel User Form as a menu The form will have
controls that open other workbooks.

However I only want the Menu Form to display in the main workbook
(Book1.xls), and when the next workbook opens (book2.xls) the form
would not be presented.

Once I open the form, it is displayed in front of all subsequent
workbooks.

How can I limit the display of the form to only the first workbook.

Thanks in advance


--
rmeix
------------------------------------------------------------------------
rmeix's Profile: http://www.excelforum.com/member.php...o&userid=27737
View this thread: http://www.excelforum.com/showthread...hreadid=472446

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help using form as menu

in the code that displays the form, put an if statement against the
activeworkbook

if Ucase(activeworkbook.Name) < "BOOK1.XLS" then exit sub

' show form

--
Regards,
Tom Ogilvy

"rmeix" wrote in
message ...

I am trying to use an Excel User Form as a menu The form will have
controls that open other workbooks.

However I only want the Menu Form to display in the main workbook
(Book1.xls), and when the next workbook opens (book2.xls) the form
would not be presented.

Once I open the form, it is displayed in front of all subsequent
workbooks.

How can I limit the display of the form to only the first workbook.

Thanks in advance


--
rmeix
------------------------------------------------------------------------
rmeix's Profile:

http://www.excelforum.com/member.php...o&userid=27737
View this thread: http://www.excelforum.com/showthread...hreadid=472446



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get a User Form to activate off a drop down menu Rcarper Excel Discussion (Misc queries) 2 October 2nd 09 02:04 PM
Menu attached to a form? StefanW Excel Programming 3 October 6th 04 11:20 PM
Add Menu to a VBA Form Rajesh Sivadasan Excel Programming 8 September 26th 04 03:31 PM
Opening a Form from send menu? Noggin[_5_] Excel Programming 0 July 4th 04 10:21 AM
Right click menu in my form kvenku Excel Programming 0 April 7th 04 01:18 PM


All times are GMT +1. The time now is 04:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"