Hello,
I am trying to write a macro that will pull a selection from a drop down, update the information, and print. However, it seems that its not updating the information. It also looks like it zooms by a name here and there.
Any help is appreciated! The code is below.
Sub PrintSupplierScorecards()
Dim ws As Worksheet
Dim i As Long
Set ws = Sheets("Suppliers for macro")
For i = 1 To ws.Cells(Rows.Count, "A").End(xlUp).Row
With Sheets("Key Supplier Scorecards")
.Range("C9:J9").Value = ws.Cells(i, "A").Value
.PrintPreview ' Change to PrintOut after testing
End With
Next i
End Sub
I am trying to write a macro that will pull a selection from a drop down, update the information, and print. However, it seems that its not updating the information. It also looks like it zooms by a name here and there.
Any help is appreciated! The code is below.
Sub PrintSupplierScorecards()
Dim ws As Worksheet
Dim i As Long
Set ws = Sheets("Suppliers for macro")
For i = 1 To ws.Cells(Rows.Count, "A").End(xlUp).Row
With Sheets("Key Supplier Scorecards")
.Range("C9:J9").Value = ws.Cells(i, "A").Value
.PrintPreview ' Change to PrintOut after testing
End With
Next i
End Sub