Hi everyone.
in the attached workbook sheet2 must highlight the row if there is a date in column P
now the color of the row changes if I click in the cell.
It has to do this if I move between the two sheets
Hi everyone.
in the attached workbook sheet2 must highlight the row if there is a date in column P
now the color of the row changes if I click in the cell.
It has to do this if I move between the two sheets
You could use Conditional Formatting: Formula: =$P5>1 and apply it to the whole area: =$A$5:$P$105
Difficult is not to know but to share what you know (Han Fei Tzu reworked)
Thanks you rollis13, but I have to use a macro
Change the macro because it works with
Private Sub Worksheet_Activate()
now it doesn't work
Please Login or Register to view this content.
This was the solution I was going to suggest with the Worksheet_Activate event, but I gave up as it doesn't delete any highlighting that is no longer needed:But you can try this with this tweak:Please Login or Register to view this content.
Please Login or Register to view this content.
Last edited by rollis13; 05-13-2024 at 04:36 PM.
Thanks rollis it works well.
I added 4 lines
If UCase(Trim(cell.Value)) = "" Then
Me.Range("A" & cell.Row & ":P" & cell.Row).Validation.Delete
Me.Range("A" & cell.Row & ":P" & cell.Row).Interior.Color = xlNone
End If
but for this
Me.Range("A" & cell.Row & ":P" & cell.Row).Interior.Color = xlNone
I have to switch between 2 sheets twice
Please Login or Register to view this content.
Please consider my second suggestion in post #5.
Thank you, rollis13, work well
Last edited by xam99; 05-14-2024 at 03:43 AM.
Thanks for the positive feedback, glad having been of some help.
By the way, you probably need to mark this thread as [Solved].
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks