Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I use conditional formating to get the greenbar effect on my
spreadsheet it wants to print that way and I really only want it to be on my screen for working in the spreadsheet. I want it to print with no colors or patterns. I can't figure out how to do that with the conditional formating so I was thinking using vba would be the best thing to do. I found this bit of code at MrExcel.Com while surfing for the answer to my dilemma. This is run as a macro, needing to push a button (or vba/run) to apply it to your selection. But I don't see anywhere that it is limited to be visible on screen only. Could someone please help me adapt the code to meet my criteria? Sub ApplyGreenBarToSelection() n = 0 For Each VisRow In Selection.Resize(, 1).SpecialCells(xlCellTypeVisible) n = n + 1 If n Mod 2 = 0 Then VisRow.EntireRow.Interior.ColorIndex = 35 End If Next VisRow End Sub Thank You as always Joanne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatic greenbar effect, varied color, corrects with re-format | Excel Worksheet Functions | |||
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? | Excel Programming | |||
Implant macro coding into ASP coding | Excel Programming | |||
how do I create greenbar paper simulation in Excel? | Excel Programming | |||
how do I create greenbar paper simulation in Excel? | Excel Programming |