markman235
Board Regular
- Joined
- May 10, 2011
- Messages
- 52
Hi everyone,
I am having some issues with this marco, and full disclosure, I don't know much about macro's at all.
But i am getting a runtime 424 error whenever i try to run this. The purpose is to pull from a list of employee numbers and print them on a safety inpection sheet.
Any help is greatly appreciated.
Thanks,
Mark
Sub emp()
Dim c As Range
For Each c In EmployeeList.Range("A2", EmployeeList.Cells(Rows.Count, 1).End(x1Up)) 'makes range dynamic
If c <> "" Then CBIFront.Range("A12") = c.Value
If c <> "" Then CBIFront.Range("C2") = c.Value
CBIFront.PrintOut
CBIBack.PrintOut
Next
End Sub
I am having some issues with this marco, and full disclosure, I don't know much about macro's at all.
But i am getting a runtime 424 error whenever i try to run this. The purpose is to pull from a list of employee numbers and print them on a safety inpection sheet.
Any help is greatly appreciated.
Thanks,
Mark
Sub emp()
Dim c As Range
For Each c In EmployeeList.Range("A2", EmployeeList.Cells(Rows.Count, 1).End(x1Up)) 'makes range dynamic
If c <> "" Then CBIFront.Range("A12") = c.Value
If c <> "" Then CBIFront.Range("C2") = c.Value
CBIFront.PrintOut
CBIBack.PrintOut
Next
End Sub