Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello--I am trying to work a macro using autofill an area with formula
R1C1 using variables. Strangely, I can get the thing to work for rows but not for columns. I am sure I am missing something obvious. Can anybody see what I am doing wrong? distance, rowcount and colcount are all variables dimmed to integers 'set up the R1C1 ActiveCell.FormulaR1C1 = "=R[-" & distance & "]C" 'Autofill ActiveCell.AutoFill _ Destination:=ActiveCell.Resize(rowcount - 4, colcount - 1 ), Type:=xlFillDefault I am banging my head against the wall and would love some help. -Abe |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Not at all clear on use of variables and/or object variables | Excel Discussion (Misc queries) | |||
Trouble Graphing 1 point w/ 2 variables | Charts and Charting in Excel | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
Q. Autofill question: Can I autofill alpha characters like I can numbers? | Excel Programming | |||
I'm having some trouble with variables in Excel '97... | Excel Programming |