Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I got the following lines in my macro:
Dim VBCodeMod As CodeModule Dim LineNum As Long ActiveWorkbook.VBProject.VBComponents.Add vbext_ct_StdModule Set VBCodeMod = Application.VBE.CodePanes(1).CodeModule I think I copied those lines from the Pearson site. When I run the macro from my personal.xls file, the macro runs without any problem. However, when I copy the macro to a new file in the document folder, the line "VBCodeMod As CodeModule" is highlighted and this error msg appears: Compile error: User-defined typ not defined Can someone please tell me what this error is? And why this error since the macro runs problem free from the personal.xls? TIA. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Message "user defined type not defined" | Excel Discussion (Misc queries) | |||
How do you save and share "user-defined chart type's" in Excel? | Charts and Charting in Excel | |||
How do you save and share "user-defined chart type's" in Excel? | Charts and Charting in Excel | |||
"User-defined type not defined" message in Excel | Excel Discussion (Misc queries) | |||
Word.Document - user defined type not defined | Excel Programming |