Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gold gold via OfficeKB.com
 
Posts: n/a
Default Assign vaiable to a cell - gold

HI,,, im just wondering how will I assign a variable to a cell that will b
used in a Range....

Here's the situation:

Range("a:b").Select

where a and b are variables assigned as integer

Please please please ....

i need this urgent....

thank you
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

dim a as long
dim b as long
a = 3
b = 18
range(a & ":" & b).select

This will select rows 3:18.

range(rows(a),rows(b)).select

will do the same.

If you're working with rows, you'll want to use Longs instead of integers.

"gold gold via OfficeKB.com" wrote:

HI,,, im just wondering how will I assign a variable to a cell that will b
used in a Range....

Here's the situation:

Range("a:b").Select

where a and b are variables assigned as integer

Please please please ....

i need this urgent....

thank you


--

Dave Peterson
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
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
how to create a variable column in cell reference Sampson Excel Worksheet Functions 3 February 21st 05 10:13 PM
Can a Formula in Cell X modify Cell Y? alMandragor Excel Discussion (Misc queries) 7 February 10th 05 09:51 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 09:03 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"