erutherford
Active Member
- Joined
- Dec 19, 2016
- Messages
- 458
thought it might be easier to provide the basic idea with code rather than try to explain it.
I am trying to take one record from "Entries" and paste into the "basic" worksheet, print the sheet (one per record , then clear contents for the next record to be copied and printed.
End the end I will have one printed sheet for each record in the "entries" worksheet.
I am trying to take one record from "Entries" and paste into the "basic" worksheet, print the sheet (one per record , then clear contents for the next record to be copied and printed.
End the end I will have one printed sheet for each record in the "entries" worksheet.
Code:
Private Sub CommandButton7_Click()
Worksheets("Entries").Range("A2").Copy Worksheets("Basic").Range("B2") 'Entry
Worksheets("Entries").Range("B2").Copy Worksheets("Basic").Range("D2") 'Last Name
Worksheets("Entries").Range("C2").Copy Worksheets("Basic").Range("E2") 'First Name
Worksheets("Entries").Range("D2").Copy Worksheets("Basic").Range("B5") 'Year
Worksheets("Entries").Range("E2").Copy Worksheets("Basic").Range("C5") 'Model
Worksheets("Entries").Range("F2").Copy Worksheets("Basic").Range("D5") 'Type
Worksheets("Entries").Range("G2").Copy Worksheets("Basic").Range("E5") 'License
Worksheets("Entries").Range("H2").Copy Worksheets("Basic").Range("G5") 'Color
Worksheets("Entries").Range("I2").Copy Worksheets("Basic").Range("J5") 'Division
Worksheets("Basic").Print
Worksheets("Basic").Range("B2").ClearContents
Worksheets("Basic").Range("D2").ClearContents
Worksheets("Basic").Range("E2").ClearContents
Worksheets("Basic").Range("B5").ClearContents
Worksheets("Basic").Range("C5").ClearContents
Worksheets("Basic").Range("D5").ClearContents
Worksheets("Basic").Range("F5").ClearContents
Worksheets("Basic").Range("G5").ClearContents
Worksheets("Basic").Range("J5").ClearContents
End Sub