G
Guest
I'm trying to autofill to the cells to the right to keep the dates going when
entering new data with a macro every month. So without a macro I would
normally select the two cells (e.g. A1 and B1) with the previous two month
headers in them and autofill to the right so that it gives me the next month.
How can I do this in a macro when the cells are changing every time? I can
get to the point of where the two cells are highlighted but need to know how
to autofill. I thought that it would be something like this:
Selection.AutoFill Destination:=Selection.Offset(0, 1), Type:=xlFillDefault
entering new data with a macro every month. So without a macro I would
normally select the two cells (e.g. A1 and B1) with the previous two month
headers in them and autofill to the right so that it gives me the next month.
How can I do this in a macro when the cells are changing every time? I can
get to the point of where the two cells are highlighted but need to know how
to autofill. I thought that it would be something like this:
Selection.AutoFill Destination:=Selection.Offset(0, 1), Type:=xlFillDefault