Hi all,
After some searching I found the below that gets me close to my objective. How would I incorporate offset in the code? Meaning, if my active cell is C3, how could I copy activecell.offset(-1,0), in this example C2 and autofill to the last row?
I tried
In the below I would copy Yes from C2 to C3:C20
Thank you,
After some searching I found the below that gets me close to my objective. How would I incorporate offset in the code? Meaning, if my active cell is C3, how could I copy activecell.offset(-1,0), in this example C2 and autofill to the last row?
VBA Code:
LR = Range("B" & Rows.count).End(xlUp).Row
ActiveCell.AutoFill Destination:=Range(ActiveCell.Address & ":C" & LR)
I tried
VBA Code:
ActiveCell.Offset(-1, 0).AutoFill Destination:=Range(ActiveCell.Address & ":C" & LR)
In the below I would copy Yes from C2 to C3:C20
.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | |||||
2 | INFO | YES | |||
3 | INFO | ||||
4 | INFO | ||||
5 | INFO | ||||
6 | INFO | ||||
7 | INFO | ||||
8 | INFO | ||||
9 | INFO | ||||
10 | INFO | ||||
11 | INFO | ||||
12 | INFO | ||||
13 | INFO | ||||
14 | INFO | ||||
15 | INFO | ||||
16 | INFO | ||||
17 | INFO | ||||
18 | INFO | ||||
19 | INFO | ||||
20 | INFO | ||||
Sheet11 |
Thank you,