+ Reply to Thread
Results 1 to 4 of 4

Hiding VBA comments ( 'asdf ) in the VBA (alt+f11) window.

  1. #1
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Hiding VBA comments ( 'asdf ) in the VBA (alt+f11) window.

    I have a module that is really big, and as it's confused me quite a bit, I've made a LOT of comments as a way to remember what does what.

    It's tidy, but I wonder if there is a way for me to HIDE all comments, (any line that starts with a ' ) so I can read just the code. Is there any way to do this in Excel 2007 VBA?

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Hiding VBA comments ( 'asdf ) in the VBA (alt+f11) window.

    You may try Tools - Options - Editor Format and change Comment Text setting to White foreground.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Hiding VBA comments ( 'asdf ) in the VBA (alt+f11) window.

    No. The closest you'll get within the VBE is to change the text colour of comments to match your background colour. This won't collapse / hide the rows containing only comments, but will make the comments invisible.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Hiding VBA comments ( 'asdf ) in the VBA (alt+f11) window.

    That works Thanks guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Textbox as a comments window
    By Guido Meng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2012, 11:50 PM
  2. Hiding comments
    By DLStryker in forum Excel General
    Replies: 1
    Last Post: 03-05-2012, 08:03 PM
  3. Hiding Comments
    By jfmorales in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-09-2011, 02:39 PM
  4. Comments - Hiding the red corner?
    By Chris424 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-31-2008, 04:37 AM
  5. Hiding Comments from others
    By Carla Hirschfeld in forum Excel General
    Replies: 1
    Last Post: 04-18-2005, 10:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1