How can I make all but a selected range hidden on a workshee
How can I make all but a selected range hidden on a workshee
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: How can I make all but a selected range hidden on a workshee

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    John G
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Is there a way to make all but lets say range("A1:L33") hidden on worksheet?

    John

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You could hide rows 34:65536 and columns M:IV too.
    Regards,

    Juan Pablo González
    http://www.juanpg.com

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    The following should work OK if you want to do it in VBA: -

    Dim ColsToHide As Range
    Dim RowsToHide As Range

    Application.ScreenUpdating = False

    Set ColsToHide = Range("M:IV")
    Set RowsToHide = Range("A34:A65536")

    ColsToHide.EntireColumn.Hidden = True
    RowsToHide.EntireRow.Hidden = True

    Application.ScreenUpdating = True

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com