+ Reply to Thread
Results 1 to 5 of 5

Code lines color and hide columns

  1. #1
    Forum Contributor
    Join Date
    09-25-2013
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2013
    Posts
    115

    Code lines color and hide columns

    Hi Everyone

    I use these 2 lines in my code:

    Please Login or Register  to view this content.
    The line Tab color works perfect - it color all the tabs red.
    The line EntireColumn hidden doesn't hide the specified columns

    Any assistance will be much appreciated.

  2. #2
    Registered User
    Join Date
    01-26-2012
    Location
    Slovenia; Kranj
    MS-Off Ver
    Office 365
    Posts
    67

    Re: Code lines color and hide columns

    Hi Tyso,

    at the moment I'm not able to test, but I think that second line works only per one sheet ... I don't know what do you have in "MyArr(Itm)" - one or more sheets ... assuming from first line, that you have multiple sheets ... try to apply second line to sheet by sheet, not to array of sheets.

    Cheers, Marko
    IF a = b THEN
    GO "back to school"

  3. #3
    Forum Contributor
    Join Date
    09-25-2013
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2013
    Posts
    115

    Re: Code lines color and hide columns

    Hi Marko

    Thank you for your quick reply!
    In "MyArr(Itm)" i have 84 sheets!

  4. #4
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: Code lines color and hide columns

    Try this then:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-25-2013
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2013
    Posts
    115

    Re: Code lines color and hide columns

    Hi Marko

    "apply second line to sheet by sheet, not to array of sheets"

    Thank you - it works

+ 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. [SOLVED] What code can I use to hide columns with the same header?
    By connieb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2013, 08:52 PM
  2. [SOLVED] varying number of columns, multiple similar lines of code (needs condensing)
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-25-2012, 12:32 PM
  3. Help to Add a few lines to macro code to hide the cell formula and to autofill
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2012, 03:28 PM
  4. VBA code to hide empty columns.
    By ms_ex_novice in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-29-2011, 10:43 AM
  5. VB Code to Hide Columns
    By Angel007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2011, 07:43 AM

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