Hello everyone! I am hoping someone has figured out this situation as I am having trouble with it.
The Problem:
The Problem:
- I am given a month from the user
- I am given how many months out the user wants to autofill from the given month
- Example: The given month is January, and they want to autofill out 6 months to June
VBA Code:
dim x as range
dim numberOfMonths as integer
numberOfMonths = 15
set x = cells(23,numberOfMonths)
Selection.AutoFill Destination:=Range(x), Type:=xlFillDefault