Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I pass a variable cell reference to a Range Object?
I will be choosing the end of data point (over and over) and then offsetting
the active cell by some value. I don't know how to reference that new active cell so that I can tell another function that that is its destination. 'goes to last cell in data set (Ex: A10) ActiveCell.SpecialCells(xlLastCell).Select 'active cell 1 down and 9 left (Ex: B1) ActiveCell.Offset(1, -9).Range("A1").Select 'How do I indicate that Destination is B1, when B1 Changes each time? Instead of '"$A$85" I want to give it a relative variable. Destination:=Range("$A$85")) NOTE: I thought I could put in something like Destination:=Range("ActiveCell.SpecialCells(xlLast Cell).Select_ ActiveCell.Offset(1, -9).Range("A1").Select" )) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Variable Cell Range Reference | Excel Worksheet Functions | |||
VLOOKUP variable range cell reference | Excel Worksheet Functions | |||
Pass a range object as a parameter | Excel Programming | |||
Pass a variable into a range? | Excel Programming | |||
How to (re)set a range.value to pass -0- to a "double" variable | Excel Discussion (Misc queries) |