Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Using variables for row numbers

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    New York
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hello i have a simple question. How do you call a row using a variable? Example
    Rows("1:1").select

    Using Rows("count:count").select doesn't work. Any Help would be appreciated.

    Bill Mahoney


  2. #2
    MrExcel MVP Barrie Davidson's Avatar
    Join Date
    Feb 2002
    Location
    Winnipeg
    Posts
    2,330
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-20 11:06, Madingo wrote:
    Hello i have a simple question. How do you call a row using a variable? Example
    Rows("1:1").select

    Using Rows("count:count").select doesn't work. Any Help would be appreciated.

    Bill Mahoney

    Bill, something like:

    Dim RowNumber1 As Long
    Dim RowNumber2 As Long
    RowNumber1 = 65
    RowNumber2 = 67
    Rows(RowNumber1 & ":" & RowNumber2).Select

    Regards,

    Barrie Davidson

    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

  3. #3
    New Member
    Join Date
    Mar 2002
    Location
    New York
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks for the help. I finally figured it out.

    using Rows(Count).Select

    works just fine.


Some videos you may like

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
  •