Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Module Comments
Hello,
Is there a way to insert comments in a module outside of subs and functions that will not cause errors when running the code? jfcby |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Module Comments
Insert a single quote sign as the first character in the comment line.
' Here's a comment Regards, Per "jfcby" skrev i meddelelsen ... Hello, Is there a way to insert comments in a module outside of subs and functions that will not cause errors when running the code? jfcby |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Module Comments
Per,
Thanks for the reply. But, when running some macros they error out using ' to comment out lines of code. Is that the only way to comment code in vba? jfcby |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Module Comments
Using the ' to exclude comments will fail only if you have made a mistake
somewhere in the placement of these comments. Perhaps you inserted a comment after a line-continuation mark(_) Post an example of code that fails. You can always use Rem instead of the ' but can also fail for the same reason as above. Gord Dibben MS Excel MVP On Wed, 22 Apr 2009 12:31:58 -0700 (PDT), jfcby wrote: Per, Thanks for the reply. But, when running some macros they error out using ' to comment out lines of code. Is that the only way to comment code in vba? jfcby |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Compile Error in Hidden Module: Module 1 | Excel Programming | |||
VBA code in one Module referencing Public Variables Declared inanother Module failing | Excel Programming | |||
Need some comments on my Utility_Move class module. | Excel Worksheet Functions | |||
code in module A to not execute a Worksheet_SelectionChange sub of another module | Excel Discussion (Misc queries) | |||
Run worksheet module code from workbook module? | Excel Programming |