Excel VBA Macro to Auto Fill a Specified Number of Times & Copy the Same
Dim x As Integer
Dim y As Integer
Dim z As Integer
On Error GoTo Err1:
y = InputBox("Enter The Desired No.of Times To Fill:")
For x = 1 To y - 1
z = z + 1
ActiveCell.Offset(z, 0) = ActiveCell.Value
Next x
Range(ActiveCell.Offset(z, 0), ActiveCell.Offset(z - (y - 1), 0)).Copy
Err1:
End Sub
Thanks,Tamatam
No comments:
Post a Comment
Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.