jfisher387
New Member
- Joined
- Feb 9, 2024
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
It's been awhile since I have played with Excel VBA macros. I have spent the majority of my time playing with C# lately and I am having trouble recalling how to do somethings.
I want to copy a range of cells on another sheet, and insert that range to my active sheet. a certain number of times (based on integer in a cell)
I want to copy a range of cells on another sheet, and insert that range to my active sheet. a certain number of times (based on integer in a cell)
VBA Code:
Sub ItemQty()
'
'Quotes
'
Dim ItemQty As Integer
Dim SubItemQty As Integer
ItemQty = ThisWorkbook.Worksheets("Quote Sheet").Range("K1").Value
For i = 1 To ItemQty
Sheets("TemplateGrid").Range("A1:K12").Copy
Sheets("Quote Sheet").Range("A16").Insert Shift:=xlDown
Application.CutCopyMode = False
Next
End Sub