+ Reply to Thread
Results 1 to 8 of 8

How do I limit the visible rows in Excel?

  1. #1
    tomcheesewright
    Guest

    How do I limit the visible rows in Excel?

    I want to hide everything in a worksheet except for the table into which I am
    asking others for input. Columns are easy, but how can I hide ALL the rows
    below my chart? I could colour them out in black, that would lead to
    printing issues.

    Help please!

  2. #2
    Peter Rooney
    Guest

    RE: How do I limit the visible rows in Excel?

    Tom,

    One way I like to restrict access is by defining a scroll area thus:

    Sub DefineScrollArea()
    ActiveSheet.ScrollArea = "MyCellRange"
    End Sub

    Once you run this macro, you can only move the cursor to a cell within this
    range.
    You can also use cell addressses instead of the "MyCellrange" range name

    Sub DefineScrollArea()
    ActiveSheet.ScrollArea = "B5:G25"
    End Sub

    To turn this function off, use a macro like this:

    Sub ResetScrollArea()
    Worksheets("Database").ScrollArea = ""
    End Sub

    To hide the contents of worksheet cells, select them, then go into Format
    Cells Number Custom and enter ;;; (three semicolons) in the type box.

    This will hide everything in the delected cells without you having to change
    the colours. To reset this, reset the cell format to general, or something
    like that.

    You can also hide rows by selecting them the clicking Format Rows Hide.

    Hope this helps

    Pete





    "tomcheesewright" wrote:

    > I want to hide everything in a worksheet except for the table into which I am
    > asking others for input. Columns are easy, but how can I hide ALL the rows
    > below my chart? I could colour them out in black, that would lead to
    > printing issues.
    >
    > Help please!


  3. #3
    paul
    Guest

    RE: How do I limit the visible rows in Excel?

    set the print area file>printarea>set print area to incluse only your chart
    and on the screen select your table then on the std toolbar click on the zoom
    box and select "selection".If you want to hide data highlight the rows you
    want to hide on the very left margin >right click>hide
    --
    paul
    remove nospam for email addy!



    "tomcheesewright" wrote:

    > I want to hide everything in a worksheet except for the table into which I am
    > asking others for input. Columns are easy, but how can I hide ALL the rows
    > below my chart? I could colour them out in black, that would lead to
    > printing issues.
    >
    > Help please!


  4. #4
    Forum Contributor
    Join Date
    05-04-2005
    Posts
    136
    select the row below the last row that you want visible. hit ctrl+shift+arrow down.
    Right click and select hide.

  5. #5
    Registered User
    Join Date
    03-12-2004
    Location
    Malaysia
    Posts
    7

    RE: How do I limit the visible rows in Excel?

    Hi Pete,

    The macro only works during current session, and the next time the file is open, the preset scroll area is no longer valid even the file was saved before that.

    What codes should be added so that the macro is auto run when the file is open, and the defined scroll area is maintain.

    Thanks


    Taych

  6. #6
    Forum Contributor
    Join Date
    05-03-2004
    Location
    England
    MS-Off Ver
    2003 Excel
    Posts
    118
    Hi all,
    I would just go into the properties on the VB page and change the scroll area to your desired range. HTH.

    Greg.

  7. #7
    Registered User
    Join Date
    03-12-2004
    Location
    Malaysia
    Posts
    7

    Thumbs up

    Hi,

    I added the following codes to the ThisWorkBook in Microsoft Excel Objects to set the scroll area permanent so that the preset scroll area will always maintain whenever the workbook is open.

    Private Sub Workbook_Open()
    Worksheets("Sheet1").ScrollArea = "B5:G25"
    End Sub

    Hope this will be useful to some guys.
    Taych
    Ms Windows Vista SP2
    Excel 2007 SP2

  8. #8
    Gilly Hampshire
    Guest

    RE: How do I limit the visible rows in Excel?

    Hi Tom,

    To hide rows do the following
    1) Click the first row number you want to hide, this will select the whole row
    2) Press Ctrl+Shift+the down arrow key, this will select ALL the rows below.
    3) Select 'Format' on the Menu toolbar and choose 'Row', then select 'Hide'

    All the selected rows will now be hidden and a grey moat will appear.

    Hope this helps

    "tomcheesewright" wrote:

    > I want to hide everything in a worksheet except for the table into which I am
    > asking others for input. Columns are easy, but how can I hide ALL the rows
    > below my chart? I could colour them out in black, that would lead to
    > printing issues.
    >
    > Help please!


+ 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