Column G has a conditional format for Green, Yellow, Red depending on
the content of G, Y, R. It serves as a "Stop Light" indicator.
I need to force this to upper case or some of the other cell formulas
do not work. (it recognizes G but not g etc.
I created a sub in the "Workbook_SheetChange" event to stuff the cell
with an uppercase.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As
Range)
Dim ThisRow As Integer, ThisCol As Integer
Application.EnableEvents = False
ThisRow = ActiveCell.row
ThisCol = ActiveCell.Column
Cells(ThisRow, ThisCol).Value = UCase(Target)
Application.EnableEvents = True
End Sub
Problem - The GYR resides in a merged area of 3 to 6 rows. When I step
thru the macro, I see that Target captures the value (say "g") which is
in merged rows 4-9. Also "ThisRow" has aready changed to row 10 (also
a merged area of rows 10-12). Therefore the the code to insert
UCase(Target) does so on row 10 instead of row 4 (or whatever the
originating row is).
How can I capture the originating row? I can't simply subtract a
constant because the merged rows are not always the same.
Glen
Bookmarks