+ Reply to Thread
Results 1 to 5 of 5

Range A1 to lastrow and last column

  1. #1
    Registered User
    Join Date
    04-20-2020
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    16
    Posts
    17

    Range A1 to lastrow and last column

    Hi everyone

    Im trying to make a selection from a specific cell untill the last row and last column of the sheet. I have the letter of the last column which is "DS'' but now i want to use this in my range selection.

    Please Login or Register  to view this content.
    Anyone knows the answer?

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Range A1 to lastrow and last column

    I am not sure that I understand... You are selecting G3:DS... but your description says A1 to last row and column

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    93

    Re: Range A1 to lastrow and last column

    I am not sure that I understand...

    Try...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-20-2020
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    16
    Posts
    17

    Re: Range A1 to lastrow and last column

    Thank you Arkadi! Your solution works perfectly. Im sorry for the A1 in the description, I thought the tread would be easier to find in the future.

    Also thank you JCabral for the response your solution also works perfect! Now i have to choose between two haha.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Range A1 to lastrow and last column

    Thanks for the feedback. With this code it would not really matter which one you choose, it is not very demanding.
    I humbly suggest that mine is SLIGHTLY more efficient, since it removes the line of code that obtains the letters for the column, which is not really needed.

    Veel geluk me je projekt!

    Thanks for marking the thread as solved, and for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy range in column B down to lastrow of column C
    By Ravenous in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-09-2018, 03:43 AM
  2. R1C1 lastRow not lastRow when data combined
    By Spyderwoman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2016, 05:20 PM
  3. [SOLVED] Using range with lastrow
    By luizmachado in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2016, 06:04 PM
  4. [SOLVED] LastRow - for next loops longer than lastrow?
    By flabb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2016, 12:39 PM
  5. [SOLVED] BorderAround for Range (lastRow)
    By Quasis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2015, 03:01 PM
  6. [SOLVED] Changing range in VBA to lastrow
    By BlakeSkate in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2015, 05:01 PM
  7. [SOLVED] How to find text then select RANGE form the text found to lastrow of Column J
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 02:45 AM

Tags for this Thread

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