Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi!
I'm using a command button in an excel worksheet to show a userform. I have assigned a macro to the command button. All the macro does is open a userform named "frmKitForms." The macro is in a standard module. Here it is: Sub KitForms() frmKitForms.Show End Sub When I click the command button that runs the macro the VBE Editor opens and the line of code (i.e. frmKitForms.Show) is highlighted in yellow. If I click F5, the code opens my userform like normal. If I step through the code using F8, the code does not proceed to End Sub, it just goes back to Sub KitForms(), and returns an error when it reads the frmKitForms.Show line. Does anyone know why the VBE editor is opening automatically at all? Regards, Tim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run Macro Automatically When Excel 2003 Opens | Excel Discussion (Misc queries) | |||
writing a macro that automatically opens another file | Excel Discussion (Misc queries) | |||
VBA Editor opens automatically after unlocking machine | Excel Discussion (Misc queries) | |||
Macro now opens up VBA editor - not intended | Excel Programming | |||
VBA Editor opens by itself? | Excel Programming |