View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Zack Barresse[_3_] Zack Barresse[_3_] is offline
external usenet poster
 
Posts: 101
Default Help selecting a range in vba from userform inputs

Hi,

Why do you want to Select anything? No real need for it. But here is the
syntax...

Range("B" & orderlineBox.Value & ":S" & orderlineBox.Value).Activate

... or ..

Range(Cells(orderlineBox.Value, 2), Cells(orderlineBox.Value, 19)).Activate

HTH

--
Regards,
Zack Barresse, aka firefytr



"grievesy" wrote in
message ...

I have already created the form and can make the inputs select a cell.
but i cannot seem to select a range.
The user enters a row and i want to select that row from column b to
column s.
I am using
Cells(orderlineBox.Value, 2).Activate
to select the row and column 2 (B).
How do i select the range??

Please help..


--
grievesy
------------------------------------------------------------------------
grievesy's Profile:
http://www.excelforum.com/member.php...o&userid=10120
View this thread: http://www.excelforum.com/showthread...hreadid=537011