+ Reply to Thread
Results 1 to 4 of 4

MAcro to hide all columns except those selected - help

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    MAcro to hide all columns except those selected - help

    I have a table and I would like to run a macro to hide all columns except those columns which i have selected/highlighted. The current code only unhides the first column i have selected.

    the code is below

    Please Login or Register  to view this content.

    there must be a simple solution out there.

    Thanks in advance
    Last edited by ratdogexcel; 08-29-2013 at 03:52 AM.

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: MAcro to hide all columns except those selected - help

    try this..

    Please Login or Register  to view this content.
    Blue one will work.. but for extra precaution use 2nd one..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    07-27-2012
    Location
    Sydney Aust
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: MAcro to hide all columns except those selected - help

    thanks a heap it works well.

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: MAcro to hide all columns except those selected - help

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Hide Selected columns
    By vin2122 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2012, 02:22 AM
  2. hide the rows that are not selected VBA macro
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2011, 12:18 AM
  3. Replies: 1
    Last Post: 06-16-2010, 04:24 PM
  4. Hide/Display selected columns
    By jenteh in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-14-2009, 06:16 AM
  5. Macro to hide selected columns
    By Ingeniero1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2007, 05:02 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