Consulting

Results 1 to 2 of 2

Thread: Range Select

  1. #1

    Range Select

    Hey guys,

    I'm currently writing a program the has writes a variable number of answers determined by the user. I have a count which tells me how many numbers there are, i have to graph these the problem is how do i select a range of using the count value.

    At the moment its
    Range("B3:B42").Select

    I wish for it to select B3:Bcount, how do i do this?

    advance thanks

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Range("B3:B" & Range("B" & rows.count).end(xlup).row)
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

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