blackatz4evz
New Member
- Joined
- Apr 13, 2017
- Messages
- 3
I am having trouble getting the above code to work. I am trying to run a selection autofill macro for two different variables that are stored ranges and am running into errors. Any help would be amazing!
Code:
Sub Automation_BOBJ()
Dim startPointBobjGL As Range
Dim bobjGLNextCell As Range
Dim bobjGLLastCell As Range
Set startPointBobjGL = Range("A3")
Set bobjGLNextCell = startPointBobjGL.End(xlToRight).Offset(0, 1)
Set bobjGLLastCell = startPointBobjGL.End(xlToRight).Offset(13, 1)
bobjGLNextCell.FormulaR1C1 = _
"=VLOOKUP(RC[-4],R2C2:R27C15,(MONTH(TODAY())+1),0)"
Selection.AutoFill Destination:=Range(startPointBobjGL, bobjGLLast), Type:=xlFillDefault
ActiveCell.FormulaR1C1 = "103100335.7"
End Sub