+ Reply to Thread
Results 1 to 6 of 6

To: Gary's Student re: cell address reply

Hybrid View

  1. #1
    Registered User
    Join Date
    04-17-2006
    Posts
    6

    To: Gary's Student re: cell address reply

    Thank you.

    Next question....

    How do I substitute r.Value into my range statement below? I essentially want to say from A5 through r.Value


    Range("A5:J65000").Select


    Thanks Again!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    Assuming r.value is an address, you can use

    Range("A5:" & R.value).Select

  3. #3
    Registered User
    Join Date
    04-17-2006
    Posts
    6

    ?

    Sorry, I needed to bo more clear. I need to retain the J and use the row portion of the r.value address.

    Note: J is the last column in the sheet I am copying from, bit it can have a variable number of rows.



    Quote Originally Posted by mrice
    Assuming r.value is an address, you can use

    Range("A5:" & R.value).Select

  4. #4
    Chip Pearson
    Guest

    Re: Gary's Student re: cell address reply

    Do you mean

    Range("A5:J" & R.Row)


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "ppbedz" <ppbedz.26fcm0_1145304001.947@excelforum-nospam.com>
    wrote in message
    news:ppbedz.26fcm0_1145304001.947@excelforum-nospam.com...
    >
    > Sorry, I needed to bo more clear. I need to retain the J and
    > use the
    > row portion of the r.value address.
    >
    > Note: J is the last column in the sheet I am copying from, bit
    > it can
    > have a variable number of rows.
    >
    >
    >
    > mrice Wrote:
    >> Assuming r.value is an address, you can use
    >>
    >> Range("A5:" & R.value).Select

    >
    >
    > --
    > ppbedz
    > ------------------------------------------------------------------------
    > ppbedz's Profile:
    > http://www.excelforum.com/member.php...o&userid=33559
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=533519
    >




  5. #5
    Chip Pearson
    Guest

    Re: Gary's Student re: cell address reply

    Try

    Range("A5:J" & R.Value).Select


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "ppbedz" <ppbedz.26fbwz_1145303104.2315@excelforum-nospam.com>
    wrote in message
    news:ppbedz.26fbwz_1145303104.2315@excelforum-nospam.com...
    >
    > Thank you.
    >
    > Next question....
    >
    > How do I substitute r.Value into my range statement below? I
    > essentially want to say from A5 through r.Value
    >
    >
    > Range("A5:J65000").Select
    >
    >
    > Thanks Again!
    >
    >
    > --
    > ppbedz
    > ------------------------------------------------------------------------
    > ppbedz's Profile:
    > http://www.excelforum.com/member.php...o&userid=33559
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=533519
    >




  6. #6
    Dave Peterson
    Guest

    Re: To: Gary's Student re: cell address reply

    You have an alternate suggestion at your other thread.

    ppbedz wrote:
    >
    > Thank you.
    >
    > Next question....
    >
    > How do I substitute r.Value into my range statement below? I
    > essentially want to say from A5 through r.Value
    >
    > Range("A5:J65000").Select
    >
    > Thanks Again!
    >
    > --
    > ppbedz
    > ------------------------------------------------------------------------
    > ppbedz's Profile: http://www.excelforum.com/member.php...o&userid=33559
    > View this thread: http://www.excelforum.com/showthread...hreadid=533519


    --

    Dave Peterson

+ 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