![]() |
![]() |
|
|||||||
| 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: Mar 2002
Location: Montreal, Quebec
Posts: 194
|
I am using the following to hide a userform after opening a workbook. It worked fine the first few times. Then I start getting an error message that the macro "KillTheForm" cannot be found. Any idea what the problem is?
Application.OnTime Now + TimeValue("00:00:02"), "KillTheForm" Sub KillTheForm() frmMenu.Hide Call ListView frmMarginalCosts.Show End Sub |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Make sure that Sub KillTheForm() is in a Standard Module and not in a sheet, workbook, or userform Class module... Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Montreal, Quebec
Posts: 194
|
TsTom
KillTheForm is in a module. I had been working OK for a while then all of a sudden I'm now getting the error message. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|