Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have renamed all of my modules and moved macros into the corresponding
module that best catagorizes them. Now I keep getting errors. Expected variable or procedure, not module When this error comes up the word sheets is always highlighted. Why is this happening? Any Ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Show a sample macro where this is happening.
DaveU |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You didn't name one of your modules "Sheets" did you?? When renaming
modules it is important not to use any terms already used by VBA and also not to use a name that you have also used for a macro, function or userform. Regards Rowan justaguyfromky wrote: I have renamed all of my modules and moved macros into the corresponding module that best catagorizes them. Now I keep getting errors. Expected variable or procedure, not module When this error comes up the word sheets is always highlighted. Why is this happening? Any Ideas? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming this to be the problem, then this is one of the reasons I suggested
in my original response prefacing your module names with m or mod... mSheets or modSheets are perfectly acceptable names that will not conflict with any reserved words in VBA. I probably should have mentioned that in my first post. -- HTH... Jim Thomlinson "Rowan Drummond" wrote: You didn't name one of your modules "Sheets" did you?? When renaming modules it is important not to use any terms already used by VBA and also not to use a name that you have also used for a macro, function or userform. Regards Rowan justaguyfromky wrote: I have renamed all of my modules and moved macros into the corresponding module that best catagorizes them. Now I keep getting errors. Expected variable or procedure, not module When this error comes up the word sheets is always highlighted. Why is this happening? Any Ideas? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Where can I view a compiled list of reserved words?
-- Thank you for your time. Windows XP Office 2002 "Jim Thomlinson" wrote: Assuming this to be the problem, then this is one of the reasons I suggested in my original response prefacing your module names with m or mod... mSheets or modSheets are perfectly acceptable names that will not conflict with any reserved words in VBA. I probably should have mentioned that in my first post. -- HTH... Jim Thomlinson "Rowan Drummond" wrote: You didn't name one of your modules "Sheets" did you?? When renaming modules it is important not to use any terms already used by VBA and also not to use a name that you have also used for a macro, function or userform. Regards Rowan justaguyfromky wrote: I have renamed all of my modules and moved macros into the corresponding module that best catagorizes them. Now I keep getting errors. Expected variable or procedure, not module When this error comes up the word sheets is always highlighted. Why is this happening? Any Ideas? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() in the VBE press the help button (dont use the AskAQuestion box) in the TOC select Microsoft Visual Basic Documentation select Visual Basic Language Reference select Keywords et voilá -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam Where can I view a compiled list of reserved words? |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Actually, I figured it out on my own. Just as Rowan guessed, I named one of
the modules "Sheets". It just dawned on me when everytime I used a macro, sheets was highlighted. I love excel, every day is a learning experience. Thanks for the speedy replies anyway. I have learned more from this forum than I have anywhere else. "justaguyfromky" wrote: I have renamed all of my modules and moved macros into the corresponding module that best catagorizes them. Now I keep getting errors. Expected variable or procedure, not module When this error comes up the word sheets is always highlighted. Why is this happening? Any Ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Module error | Excel Discussion (Misc queries) | |||
compile error in hidden module | Excel Discussion (Misc queries) | |||
error "module not found" | Excel Discussion (Misc queries) | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) | |||
Compile error in hidden module error | Excel Programming |