Friday, August 31, 2012

How to Auto Fill a value for Specified Number of Times in Same Column using VBA

VBA Macro to Auto Fill a Specified Number of Times In Same Column
Sub Mac_Fill()
Dim A as Integer, B as Integer

A = InputBox("Enter No.of Times to Fill:")

For B = 1 To A - 1
Selection.Offset(B, 0) = Selection.Value

Next B
End Sub


 

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.