By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,455 Members | 2,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,455 IT Pros & Developers. It's quick & easy.

commenting code

100+
P: 553
How to commend multiple lines .

In C , we can do this

/*
code
lines
*/

How to do it with VBA

I know the Comment Block button ... But is there any thing like C in VBA ?

Thanks
Jul 23 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 634
Hi
How to commend multiple lines .

In C , we can do this

/*
code
lines
*/

How to do it with VBA

I know the Comment Block button ... But is there any thing like C in VBA ?

Thanks
You just use an apostrophe to comment all or part of a line (everything after the apostrophe is ignored)

'code
'lines

There is a button on the VBA screen's Edit toolbar for commenting blocks of code.

MTB
Jul 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.