mattstopel
New Member
- Joined
- Jun 27, 2018
- Messages
- 10
Hi all,
A pretty simple one but in need of advice.
The quickest way to populate cells P1:P25 with values 1-25.
I recorded the following macro and am using that, but i am sure there is a quicker way to generate the numbers.
Thanks in advanced.
A pretty simple one but in need of advice.
The quickest way to populate cells P1:P25 with values 1-25.
I recorded the following macro and am using that, but i am sure there is a quicker way to generate the numbers.
Code:
Sub record1_25()
'
' record25 Macro
'
'
Range("P1").Select
ActiveCell.FormulaR1C1 = "1"
Range("P2").Select
ActiveCell.FormulaR1C1 = "2"
Range("P1:P2").Select
Selection.AutoFill Destination:=Range("P1:P25"), Type:=xlFillDefault
Range("P1:P25").Select
End Sub
Thanks in advanced.