Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 293
Default Start UserForm From Different Workbook

Greeting,

I have a UserForm in one workbook that I need to open from a
CommandButton in another workbook. I don't know the syntax to put in
that CommandButton's code to accomplish this.

Anyone know how to do this?

Any help would be greatly appreciated.

-Minitman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Start UserForm From Different Workbook

Application.Run "'fileName.xls'!ShowForm"

Where ShowForm is a routine in a normal module in the other workbook that
show's the form.

Depending on fileName.xls you might need to embrace it with apostrophes, no
harm to include them

Regards,
Peter T

"Minitman" wrote in message
...
Greeting,

I have a UserForm in one workbook that I need to open from a
CommandButton in another workbook. I don't know the syntax to put in
that CommandButton's code to accomplish this.

Anyone know how to do this?

Any help would be greatly appreciated.

-Minitman



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 293
Default Start UserForm From Different Workbook

Hey Peter,

That works great!

Thank you very much.

-Minitman




On Wed, 10 Sep 2008 20:21:17 +0100, "Peter T" <peter_t@discussions
wrote:

Application.Run "'fileName.xls'!ShowForm"

Where ShowForm is a routine in a normal module in the other workbook that
show's the form.

Depending on fileName.xls you might need to embrace it with apostrophes, no
harm to include them

Regards,
Peter T

"Minitman" wrote in message
.. .
Greeting,

I have a UserForm in one workbook that I need to open from a
CommandButton in another workbook. I don't know the syntax to put in
that CommandButton's code to accomplish this.

Anyone know how to do this?

Any help would be greatly appreciated.

-Minitman



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
Get outlook to start a userform in excel. [email protected] Excel Programming 0 August 7th 08 08:39 PM
Loading UserForm on start up. Kobus Excel Programming 2 April 1st 05 11:13 AM
Start A UserForm By Entering A Cell Minitman[_4_] Excel Programming 2 May 4th 04 01:02 PM
I need a UserForm to Auto Start Debi[_2_] Excel Programming 3 March 4th 04 07:30 PM
Start-up userform Lars Kofod Excel Programming 1 December 1st 03 03:26 PM


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