+ Reply to Thread
Results 1 to 3 of 3

Select Range in Active Row

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Select Range in Active Row

    Good day, Gurus! It's been awhile.

    I'm sure this has been answered, but my search couldn't provide an answer.

    All I want to do is selct a row, and then copy cells A to AP in that selected row.

    Tried this, it didn't work.

    Please Login or Register  to view this content.
    Thanks in advance for any help you can offer.
    Last edited by [email protected]; 12-09-2011 at 02:58 AM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Select Range in Active Row

    Hi Hutch

    Try:
    Please Login or Register  to view this content.
    A neater version is:
    Please Login or Register  to view this content.
    If you don't need to refer to AR again later, you don't need it at all. You can go straight to:
    Please Login or Register  to view this content.

    Resize(1,42) is because AP is the 42nd column.

    Remember in your code that AR is a Range, not a string. To use its row number as you originally intended you would need to use AR.Row

    Best regards, Rob.

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Select Range in Active Row

    Thanks, Rob. You're a genius!

    Have a great day!

    Hutch

+ 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