Results 1 to 6 of 6

FinalRow command

Threaded View

  1. #1
    Registered User
    Join Date
    09-13-2006
    Posts
    21

    FinalRow command

    I am using this code:

    FinalRow = Cells(65536,1).End(xlUp).Row
    to find the final row.
    Now I want to hide rows 7 through the final row.
    I tried this:

    Rows("7:FinalRow").Select
    Selection.EntireRow.Hidden = True
    Those commands work if I specify any number instead of FinalRow, but I don't know how many lines there will be. Any help?

    Thanks for the note. Someone said that before, but I didn't understand what they meant.

    Thanks!

    I also tried
    Rows("7:"FinalRow"").Select
    That didn't work either.
    Last edited by up4asmile; 01-29-2015 at 12:51 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 05-07-2014, 07:05 AM
  2. Master Command Button to call on other Command Buttons located in other Workbooks
    By MrNickRegan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2013, 07:57 PM
  3. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  4. Can you use "Finalrow" in a formual in VBA?
    By iwilli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2012, 12:23 PM
  5. Can't declare FinalRow
    By JapanDave in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2011, 02:02 AM

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