Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Load form saved in one work book from another.

Is this possible.

I Have two workbooks.

Master.xls and Slave.xls

Is it possible to call a form called MainMenu in Master.xls from a button on
a sheet in Slave.xls

--
Regards and Thanks for any assistance.

Francis Brown.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Load form saved in one work book from another.

You could have a subroutine in master.xls that shows the form:

Option explicit
sub ShowTheForm()
mainmenu.show
end sub

Then you could have a macro assigned to that commandbutton (from the control
toolbox toolbar) that does the actual call.

option explicit
Private Sub CommandButton1_Click()
application.run "master.xls!showtheform"
end sub

You could also assign this kind of macro to a button from the Forms toolbar.

Or with the forms toolbar, you could just assign the macro in the master.xls
workbook directly (rightclick and assign macro).

======
If you use the application.run stuff, then master.xls will have to be open. If
you assign the macro to the forms button, then excel will open master.xls (if
it's not already open).


Francis Brown wrote:

Is this possible.

I Have two workbooks.

Master.xls and Slave.xls

Is it possible to call a form called MainMenu in Master.xls from a button on
a sheet in Slave.xls

--
Regards and Thanks for any assistance.

Francis Brown.


--

Dave Peterson
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
Custom 2 axis chart saved as template fails to load ALV Charts and Charting in Excel 0 December 5th 07 09:02 PM
Won't load saved spreadsheets Tiny G Excel Discussion (Misc queries) 4 September 14th 07 12:27 AM
I want user form to display when opening a work book JohannM Excel Worksheet Functions 1 September 14th 06 12:23 AM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
recovering a lost book in excel that was not saved... Jade Excel Discussion (Misc queries) 2 February 8th 05 08:47 PM


All times are GMT +1. The time now is 07:46 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"