Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch when opening a userform
This is giving me a type mismatch error.... it is a button on the worksheet, used to open a userform. It works every other time I have tried it... but not this time. Private Sub CommandButton1_Click() MyUserForm.Show End Sub Any ideas? Thank you! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch when opening a userform
Many times you will get the debug hilite on the show command when the
problem is really in the initialize event code. Put a breakpoint at the beginning of the initalize code and run the show command. Then when it breaks, use F8 to step through and find the actual problem line. "SMS" wrote in message ... This is giving me a type mismatch error.... it is a button on the worksheet, used to open a userform. It works every other time I have tried it... but not this time. Private Sub CommandButton1_Click() MyUserForm.Show End Sub Any ideas? Thank you! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch when opening a userform
Brilliant! Thank you! On Oct 2, 2:55*pm, "JLGWhiz" wrote: Many times you will get the debug hilite on the show command when the problem is really in the initialize event code. *Put a breakpoint at the beginning of the initalize code and run the show command. *Then when it breaks, use F8 to step through and find the actual problem line. "SMS" wrote in message ... This is giving me a type mismatch error.... it is a button on the worksheet, used to open a userform. It works every other time I have tried it... but not this time. Private Sub CommandButton1_Click() * *MyUserForm.Show End Sub Any ideas? Thank you!- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
calculate vba userform type mismatch when decimal is entered | Excel Programming | |||
Type Mismatch: array or user defined type expected | Excel Programming | |||
Type mismatch using rnge as Range with Type 8 Input Box | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Passing Userform Listbox to sub causes type-mismatch error | Excel Programming |