+ Reply to Thread
Results 1 to 5 of 5

hide unsequential columns in vba

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    Raglan
    MS-Off Ver
    Excel 2003, 2007
    Posts
    28

    hide unsequential columns in vba

    Hi all,

    I'm using Excel 2003 and want to hide columns D:E & I:J. I have script as follows which hides I:J but I am unsure how to get it to include the other 2 columns. Grateful for any advice.

    Please Login or Register  to view this content.
    Last edited by BongoBill; 11-13-2009 at 12:04 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: hide unsequential columns in vba

    use range instead.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-11-2009
    Location
    Raglan
    MS-Off Ver
    Excel 2003, 2007
    Posts
    28

    Re: hide unsequential columns in vba

    Thanks Andy, but it then shows a bug on the following line: .Hidden = TRUE

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: hide unsequential columns in vba

    Add the EntireColumn reference

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-11-2009
    Location
    Raglan
    MS-Off Ver
    Excel 2003, 2007
    Posts
    28

    Re: hide unsequential columns in vba

    Many thanks Andy, works a treat now

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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