Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default How to load/show UserForm from other Workbook

Hi all,

I have a problem to load or show my userform in book1,
but all I want is open it from book2 via VBA

Is there way except call the macro in book1 from book2

I want it open from book2 directly ..

Thanks if you help me...

Rgds, halim

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to load/show UserForm from other Workbook

Create a subroutine in Book1.xls's project that shows the userform:

Option Explicit
sub showtheform()
userform1.show
end sub

Then in Book2.xls's project, you can call that subroutine:

option explicit
sub ShowTheFormFromBook1()
application.run "'" & "book1.xls" & "'" & "!showtheform"
end sub



wrote:

Hi all,

I have a problem to load or show my userform in book1,
but all I want is open it from book2 via VBA

Is there way except call the macro in book1 from book2

I want it open from book2 directly ..

Thanks if you help me...

Rgds, halim


--

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
Userform to load when Workbook is opened Ozgur Pars[_2_] Excel Programming 4 April 18th 06 02:41 PM
Userform Question (Load/Unload/Show/Hide) RPIJG[_76_] Excel Programming 8 November 2nd 05 08:29 PM
LOAD userform JohnTheTemp Excel Programming 2 September 9th 05 12:45 AM
UserForm Wont Load Minitman[_4_] Excel Programming 6 April 29th 04 07:49 AM
Load a Userform Nick Excel Programming 1 September 10th 03 03:24 PM


All times are GMT +1. The time now is 11:28 PM.

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

About Us

"It's about Microsoft Excel"