sperryruss
New Member
- Joined
- May 6, 2011
- Messages
- 2
I do not know vba programming but I know what the editor is and can copy code into it. I have only been using excel 2000 about a week.
I need to autofill with a number that will be different each time. I need that number to increase by one in a series to the right ranging from column B to V (like entering 171 and having it go across autofilling ending up with number 191.
I have searched internet extensively and the closest thing I have found is:
Sub ExtendDates()
Selection.AutoFill Destination:=ActiveCell.Range("A1:V1"), Type:= _
xlFillDefault
End Sub
I am not dealing with dates just numbers but this example had dates in it.
If I enter in a number in Column B this code will copy it across to Column V. But I need it to increase one number in each column for 21 columns. I need a macro like this because I have to do this around 400 times.
From what I have learned so far I think I need it to be relative because even though the columns are the same across (B to V) the row will change with a new number added each time.
Thanks,
Sperry
I need to autofill with a number that will be different each time. I need that number to increase by one in a series to the right ranging from column B to V (like entering 171 and having it go across autofilling ending up with number 191.
I have searched internet extensively and the closest thing I have found is:
Sub ExtendDates()
Selection.AutoFill Destination:=ActiveCell.Range("A1:V1"), Type:= _
xlFillDefault
End Sub
I am not dealing with dates just numbers but this example had dates in it.
If I enter in a number in Column B this code will copy it across to Column V. But I need it to increase one number in each column for 21 columns. I need a macro like this because I have to do this around 400 times.
From what I have learned so far I think I need it to be relative because even though the columns are the same across (B to V) the row will change with a new number added each time.
Thanks,
Sperry