Hi,
I try to change the color of the active cell before print the worksheet. I've got the following code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Sheets("Invoice").Select
c = ActiveCell.Address
Range(c).Interior.ColorIndex = 2
Sheets("Uurlijst").Select
d = ActiveCell.Address
Range(d).Interior.ColorIndex = 2
End Sub
It is not working can somebody tell me what I do wrong in this instance
Thank you
I try to change the color of the active cell before print the worksheet. I've got the following code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Sheets("Invoice").Select
c = ActiveCell.Address
Range(c).Interior.ColorIndex = 2
Sheets("Uurlijst").Select
d = ActiveCell.Address
Range(d).Interior.ColorIndex = 2
End Sub
It is not working can somebody tell me what I do wrong in this instance
Thank you