+ Reply to Thread
Results 1 to 4 of 4

View only user selected cells

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    View only user selected cells

    I'm at a loss and hope someone can help.

    I'm looking for a Macro that will hide all columns and rows in a worksheet except for the user selected (highlighted) range of cells. I've only been able to find macros that hide rows/columns that contain cells that contain zeros. Is what I want to accomplish even possible?

    Thanks in advance!!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: View only user selected cells

    Hi WashCaps,

    Did you know you can click on a column Letter and then right click and select "Hide". This will hide the entire column. Same works with rows.

    Was that what you were looking for?

  3. #3
    Registered User
    Join Date
    08-31-2010
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: View only user selected cells

    Hi Marvin,

    Yes, I am aware of clicking on a column letter or row number and then right click and select "Hide". The goal I am aiming for is to make the process quicker by means of clicking a button linked to a macro. The macro prompts the user to select the range of cells they want to keep visible then the macro hides all of the columns, rows or cells that are not highlighted/not user selected.

    Don't know if you are aware that Excel 2007 has 1,048,576 max rows and 16,384 max columns. Those numbers make hiding columns and rows a tedious task everytime I want to display the content of my selected range of cells.
    Last edited by WashCaps; 09-01-2010 at 12:22 AM.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: View only user selected cells

    Could you use the "ScrollArea" property perhaps?

    Please Login or Register  to view this content.
    Beware this needs to be reset everytime you open the
    workbook. Excel doesn't remember your settings from the last time
    so you could put it in an "Auto_Open" sub.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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