Printing

  • Thread starter Thread starter marc747
  • Start date Start date
M

marc747

I have an excel form, it contains 3 different colors in the worksheet
and I want to print all except the color yellow is this possible. I
want to print the all the cells only don't print the color yellow.
(print back and white) where yellow. thanks
 
There is no way to tell the printer to ignore the yellow. You would have to
insert code before the print command to change the yellow font to black, or
to change the yellow interior to white.
 
There is no way to tell the printer to ignore the yellow. You would have to
insert code before the print command to change the yellow font to black, or
to change the yellow interior to white.





- Show quoted text -


Could you help me with the code, I would like to change the yellow
interior to white.
Thanks.
 
Could you help me with the code, I would like to change the yellow
interior to white.
Thanks.

Maybe this can help you

Sub Macro5()
'
' Macro5 Macro
' Macro recorded 29/10/2007
'
' Change selected cells Colour to No fill

Range("A1:M1").Select
Selection.Interior.ColorIndex = xlNone
'Insert your print macro

' Change Selected cells back to yellow colour
Range("A1:L1").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
Range("A2").Select
End Sub
 
Maybe this can help you

Sub Macro5()
'
' Macro5 Macro
' Macro recorded 29/10/2007
'
' Change selected cells Colour to No fill

Range("A1:M1").Select
Selection.Interior.ColorIndex = xlNone
'Insert your print macro

' Change Selected cells back to yellow colour
Range("A1:L1").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
Range("A2").Select
End Sub- Hide quoted text -

- Show quoted text -

Thanks it worked, I made some adjestments and it works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top