Hi,
I have a row of formulas and I want to be able to copy the formulas, go to the end of a range, paste the formulas, then drag down the formulas a certain number of rows (based on the number of days in a particular month, in cell A1), then copy and paste the formulas as values.
Here's what I have so far, only it currently does not autofill based on the number in A1 (it just pulls down the formulas 30 rows).
Sub Macro6()
'
' Macro6 Macro
''
Range("A3:K3").Select
Selection.Copy
Selection.End(xlDown).Select
Range("A8315").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("A8315:K8345"), Type:=xlFillDefault
Range("A8315:K8345").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Thanks very much for any help!
I have a row of formulas and I want to be able to copy the formulas, go to the end of a range, paste the formulas, then drag down the formulas a certain number of rows (based on the number of days in a particular month, in cell A1), then copy and paste the formulas as values.
Here's what I have so far, only it currently does not autofill based on the number in A1 (it just pulls down the formulas 30 rows).
Sub Macro6()
'
' Macro6 Macro
''
Range("A3:K3").Select
Selection.Copy
Selection.End(xlDown).Select
Range("A8315").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("A8315:K8345"), Type:=xlFillDefault
Range("A8315:K8345").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Thanks very much for any help!