Results 1 to 3 of 3

Thread: Select till row destination

  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    54
    Rep Power
    13

    Select till row destination

    Hi,


    The below code is help to select the column B equals to the used range of column A

    Range("B2:B" & Cells(Rows.Count, "a").End(xlUp).Row).Select

    Similarly i would required to modify the above code select row 2 equals to the row 1 used range.

    Kindly help.

    Regards,

    Prabhu

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    The question is not clear. Can you please elaborate little more ?
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    659
    Rep Power
    13
    I agree with Admin... your question is not entirely clear; however, let me take a guess. Is this what you are looking for...
    Code:
    Range("B" & ActiveSheet.UsedRange.Row & ":B" & Cells(Rows.Count, "a").End(xlUp).Row).Select

Similar Threads

  1. Replies: 6
    Last Post: 12-23-2013, 04:07 PM
  2. Pop up calendar/control to select date
    By jeff in forum Excel Help
    Replies: 3
    Last Post: 07-26-2013, 05:04 PM
  3. How To Select A Sheet Using VBA
    By jeff in forum Excel Help
    Replies: 2
    Last Post: 07-25-2013, 01:25 PM
  4. Copy Table Range Till Last Row Using VBA
    By ivandgreat in forum Excel Help
    Replies: 2
    Last Post: 05-09-2013, 05:41 PM
  5. Replies: 0
    Last Post: 04-20-2013, 10:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •