patelvin21
New Member
- Joined
- Jun 17, 2011
- Messages
- 3
i need a macro or formula for repeating 320 rows with the same value and then incrementing with next number and copy that for other 320 rows and so on,
which is like
ColumnA
1
1
1
2
2
2
...
here just i had shown for just 3rows which i need it for 320 rows to do using a macro or formula. And also i had used number here but it is a character in the field what i am using.
When i recorded using a macro function i got the following function,
Sub Repeat()
'
' Repeat Macro
'
' Keyboard Shortcut: Ctrl+Shift+B
'
Selection.AutoFill Destination:=Range("B18633:B18634"), Type:=xlFillDefault
Range("B18633:B18634").Select
Range("B18634").Select
Selection.AutoFill Destination:=Range("B18634:B18953"), Type:=xlFillCopy
Range("B18634:B18953").Select
ActiveWindow.SmallScroll Down:=300
Range("B18953").Select
End Sub
But with this i am able to do for particular range, i need it to do for 1400 times copying the same value in 320 rows and increment it and then again copy it.
Can any of u please help me.
which is like
ColumnA
1
1
1
2
2
2
...
here just i had shown for just 3rows which i need it for 320 rows to do using a macro or formula. And also i had used number here but it is a character in the field what i am using.
When i recorded using a macro function i got the following function,
Sub Repeat()
'
' Repeat Macro
'
' Keyboard Shortcut: Ctrl+Shift+B
'
Selection.AutoFill Destination:=Range("B18633:B18634"), Type:=xlFillDefault
Range("B18633:B18634").Select
Range("B18634").Select
Selection.AutoFill Destination:=Range("B18634:B18953"), Type:=xlFillCopy
Range("B18634:B18953").Select
ActiveWindow.SmallScroll Down:=300
Range("B18953").Select
End Sub
But with this i am able to do for particular range, i need it to do for 1400 times copying the same value in 320 rows and increment it and then again copy it.
Can any of u please help me.