+ Reply to Thread
Results 1 to 5 of 5

Delete hidden rows & columns

  1. #1
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    Delete hidden rows & columns

    Hello,

    Can anyone help how to delete hidden rows and columns.

    In my worksheets I have a macro, which in some cases hide some rows or columns.

    Now I need a macro, which will delete these hidden rows and columns.

    Is it possible?

    Thank you in advance

    Tomas

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,440
    Hi,

    Try this and let me know if it works.

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    Delete hidden

    Hi Sweep,

    thank you for your reply.

    It is a good idea, but if I have hidden two columns or rows next to each other it will delete only one(first) column(row).

    In example:
    If I have columns A,B,C,F (so D, E are hidden), it will delete only column D and E is still hidden.

    Tomas

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,440
    Ok,

    So if we run it backwards instead:::

    Please Login or Register  to view this content.
    it works for me!

  5. #5
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    Delete Hidden

    Now it works perfect !!!!

    Thank you for your help.
    Have a nice day.

    Tomas

+ 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