Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a VisualBasic macro in Excel that copies some data from one data sheet to another. The code is: Sheets("Calculations").Range("A4:X200").AdvancedFi lter Action:=xlFilterCopy, _ CriteriaRange:=Range("A19:A34"), CopyToRange:=Range("C19:D34"), Unique:= _ False Now, I would like to replace the .Range("A4:X200") with a calculated range but I can't seem to figure out how. I have tried things like ..Range(Cells(4,1),Cells(200,24)) but that doesn't seem to work. Eventually I want to calculate myRow and myColumn and use them in the Cell reference (e.g., Cells(myRow,myColumn)). Is there any way to do this? Thanks! -- YoungGuy ------------------------------------------------------------------------ YoungGuy's Profile: http://www.excelforum.com/member.php...o&userid=29654 View this thread: http://www.excelforum.com/showthread...hreadid=503153 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Show actual values added instead of cell references? (=A1+A4 shows as=10+2 in cell) | Excel Discussion (Misc queries) | |||
Show actual values added instead of cell references? (=A1+A4 showsas =10+2 in cell) | Excel Worksheet Functions | |||
convert relative cell references to absolute cell references via amacro? | Excel Discussion (Misc queries) | |||
How to rename references from range names to cell references | Excel Discussion (Misc queries) | |||
Transferring cell content between workbooks using cell references | Excel Discussion (Misc queries) |