#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Commenting out code

Hi,

I know how to comment out code line by line

Is there a way to comment out multiple lines at once.

Like in C++ you can
use - "/*"
and - "*/"

Is there something in excel because I have a lot of code that has to be
commented out and I dont want to go line by line and click " ' ".

Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Commenting out code

Hi Jeff

In the VBA editor right click on the menu bar and check Edit.
On this toolbar there are two buttons that you can use for the selected code

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Jeff" wrote in message ...
Hi,

I know how to comment out code line by line

Is there a way to comment out multiple lines at once.

Like in C++ you can
use - "/*"
and - "*/"

Is there something in excel because I have a lot of code that has to be
commented out and I dont want to go line by line and click " ' ".

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Commenting out code

Jeff

In VBE Right-click on a toolbar then CustomizeCommandsEdit.

Drag Comment Block and UnComment Block buttons to your Toolbar.


Gord Dibben MS Excel MVP

On Wed, 31 Jan 2007 09:58:02 -0800, Jeff wrote:

Hi,

I know how to comment out code line by line

Is there a way to comment out multiple lines at once.

Like in C++ you can
use - "/*"
and - "*/"

Is there something in excel because I have a lot of code that has to be
commented out and I dont want to go line by line and click " ' ".

Thanks for your help.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unfamilliar with how to use VBA code Dave Peterson Excel Discussion (Misc queries) 2 January 10th 07 03:13 AM
VBA: For Count, when count changes from cell to cell LenS Excel Discussion (Misc queries) 18 January 4th 07 12:53 AM
Cell value not recognized by code. Brady Excel Discussion (Misc queries) 8 December 21st 06 02:56 AM
Complicated If Then / V Lookup / Match Statement... ryesworld Excel Worksheet Functions 17 December 10th 05 02:09 PM
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM


All times are GMT +1. The time now is 03:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"