Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
up to 7 functions? | Excel Worksheet Functions | |||
how to create a variable column in cell reference | Excel Worksheet Functions | |||
Can a Formula in Cell X modify Cell Y? | Excel Discussion (Misc queries) | |||
inserting data from a row to a cell, when the row number is specified by a formula in a cell | New Users to Excel | |||
VLookup resulting in a blank cell... | Excel Worksheet Functions |