bloodybrit90
Board Regular
- Joined
- Jul 18, 2011
- Messages
- 111
Hi Guys,
Right now this is the VBA I have. Instead of copying the formula down to FG403 all the time, I need to copy it to the last active cell (cell with data) in column A.
Thanks for the help
Range("FG33").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC[-5]=""Yes"",RC[-2]=""Yes"",RC[-1]=""Yes""),""Yes"",""No"")"
Range("FG33").Select
Selection.AutoFill Destination:=Range("FG33:FG403")
Range("FG33:FG403").Select
Selection.Copy
Range("FG33").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Right now this is the VBA I have. Instead of copying the formula down to FG403 all the time, I need to copy it to the last active cell (cell with data) in column A.
Thanks for the help
Range("FG33").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC[-5]=""Yes"",RC[-2]=""Yes"",RC[-1]=""Yes""),""Yes"",""No"")"
Range("FG33").Select
Selection.AutoFill Destination:=Range("FG33:FG403")
Range("FG33:FG403").Select
Selection.Copy
Range("FG33").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub