![]() |
![]() |
|
|||||||
| 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
Location: Kitchener, Canada
Posts: 32
|
Is there a way to cancel a userform_initialize event?
The userform is loaded, then the initialize event is run, then the userform is shown. My line of code that unloads the userform in the initialize event gives me an error (in Excel 97 anyway). |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
why would you want to unload the form in the initialize event? do you mean a different form?
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Location: Kitchener, Canada
Posts: 32
|
I'm adding a graphic to the userform in the intialize event. If the file doesn't exist in the correct directory then I want to display a message and close the userform.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
You may need to do your Unload in the activate event... Tom [ This Message was edited by: TsTom on 2002-04-22 06:57 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|