![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 14
|
Hi,
I have 2 worksheets - 1 has refreshing data and the other is a form with insturctions on how to use the form. I have created a command button on my form which I want to start another Form (called Userform1 which was done in VBA) I have ripped most of the Module from another xls file and everything else works except this one button. Does anyone know how to set it to load the main userform? |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
To load and show it use:
Private Sub CommandButton1_Click() UserForm1.Show End Sub To just load it use Private Sub CommandButton1_Click() Load UserForm1 End Sub |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 14
|
That has worked great.
I tried the load one earlier but it didn't work but the show one is all I need. Cheers |
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Yes, the Load only Loads an Object into memory but does not make is visible. The Show Method does both if the UserForm is not loaded.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|