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

How do I select a range in vb macro by using a variable as the ro
number

my prototype looks like this:
range("Az").select

where A is the column and z is a variabl

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default selecting a range in vb

Range("A" & Castro(z)).Select

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"jws217" wrote in message
...
How do I select a range in vb macro by using a variable as the row
number

my prototype looks like this:
range("Az").select

where A is the column and z is a variable


---
Message posted from http://www.ExcelForum.com/



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
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
Selecting a Range SJT Excel Discussion (Misc queries) 2 March 8th 06 07:30 PM
Selecting a Range Karen[_10_] Excel Programming 4 October 14th 03 10:57 PM
selecting range Bob Phillips[_5_] Excel Programming 0 September 5th 03 05:41 PM
Selecting A Range Patrick Molloy Excel Programming 0 July 22nd 03 07:54 AM


All times are GMT +1. The time now is 06:26 PM.

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"