![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Hi, I'm pretty new to VBA and am currently making a userform. When I click a button at the bottom of my form to submit the info another form comes up saying would I like to go to another form, but if I say yes, the little form that asks me that stays there. I need it to disappear once it's done it's job.
How do I do this? [ This Message was edited by: Audiojoe on 2002-02-28 05:37 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
In the button's Click event, put this at the end-
Private Sub CommandButton1_Click() UserForm2.Show Me.Hide End Sub |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Superb! Thanks man
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Actually that should be-
Me.Hide UserForm2.Show Sorry |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Ah yes, that's better
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Ah yes, that's better
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|