Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help selecting a range in vba from userform inputs


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 t
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.

--
grieves
-----------------------------------------------------------------------
grievesy's Profile: http://www.excelforum.com/member.php...fo&userid=1012
View this thread: http://www.excelforum.com/showthread.php?threadid=53701

  #2   Report Post  
Posted to microsoft.public.excel.programming
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help selecting a range in vba from userform inputs


Thanks for your help..
I actually just used the following
Cells(orderlineBox.Value, 2).Activate
Selection.Resize(, 18).Select
Cheers


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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Help selecting a range in vba from userform inputs

Can you tell us what it is you are trying to do? There's little need - if
any - to Select anything in VBA. Generally and usually it's a waste of
resources and only slows your operation down.

--
Regards,
Zack Barresse, aka firefytr



"grievesy" wrote in
message ...

Thanks for your help..
I actually just used the following
Cells(orderlineBox.Value, 2).Activate
Selection.Resize(, 18).Select
Cheers


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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find a single value from tables by selecting two variable inputs? jj023 Excel Worksheet Functions 8 February 17th 10 01:40 AM
Selecting series in a chart based on a range and manual inputs Tigerxxx Excel Discussion (Misc queries) 0 July 19th 09 12:36 AM
User selecting range from userform via dropdown menue mslabbe Excel Programming 2 July 10th 04 05:16 PM
userform inputs Jo[_4_] Excel Programming 1 September 19th 03 11:36 PM
userform inputs Jouni Excel Programming 0 September 19th 03 10:51 PM


All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"