![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 24
|
Does anyone nows how to comment a chunk of code in vba (more then a line without using the single quote)?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I do not believe this is possible. Which is sort of a shame really. You either use REM or ' and that's your lot.
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Well I'll be damned, this still doesn't answer your question but you can use underscore to continue comments:
|
|
|
|
|
|
#4 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
Same s like we do in long code lines:
'This is a multiline _ comment which has no single _ quote for each line Regards |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Yeah, it just doesn't make sense to me in comments though. Surely the REM or ' should instruct VBE to ignore all characters after it, on the same line.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|