Hi Shahidr100
This code should sort you out...See attached sample workbook.Have not designed voucher but you will get the idea of how to populate the voucher and print
Option Explicit
Sub Voucher_Print()
Dim i As Integer
Dim lRow As Long
lRow = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To lRow
With Sheets("Sheet2")
Cells(i, 1).Copy .Cells(2, 4) ' 2 , 4 REFERS TO D2
Cells(i, 2).Copy .Cells(3, 4)
Cells(i, 6).Copy .Cells(2, 2)
Cells(i, 3).Copy .Cells(1, 2)
Cells(i, 4).Copy .Cells(9, 4)
Cells(i, 8).Copy .Cells(6, 2)
End With
Sheet2.PrintPreview 'Change PrintPreview to PrintOut when you are ready to run macro
Sheet1.Activate
Next i
End Sub
Bookmarks