Hello,
I am looking to build a macro to take the values from two cells of the sheet "Label" and paste them in the first empty row on the sheet "Labels Printed". I was able to use macro record so that when I hit ctrl+p it copies the 2 cells over and prints the label but it copies over the last row Which I would like to prevent.
Thank You,
Matthew Brown
I am looking to build a macro to take the values from two cells of the sheet "Label" and paste them in the first empty row on the sheet "Labels Printed". I was able to use macro record so that when I hit ctrl+p it copies the 2 cells over and prints the label but it copies over the last row Which I would like to prevent.
Code:
Sub Macro4()
'
' Macro4 Macro
' Macro recorded 4/19/2011 by LENOVO-StoreOps
'
' Keyboard Shortcut: Ctrl+p
'
Range("D4:F4").Select
Selection.Copy
Sheets("Labels Printed").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Label").Select
Range("A6:F6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Labels Printed").Select
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A3").Select
Sheets("Label").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub
Thank You,
Matthew Brown