Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)
Cells.FormatConditions.Delete
Target.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
Target.FormatConditions(1).Interior.ColorIndex = 27
End Sub
Hi:
I use the above code on one of my spreadsheets. What it does is change the color of a cell so that you can see exactly which cell is the active cell. I am having a oproblem when I copy the contents of a cell (right click, copy) and then go to another cell there is nothing there to paste. Also if I do something and then want to cotrrect it the Undo command is not available. I did not write this code so I am not sure on how to fix it. Any ideas?
THANKS,
Mark
Sudbury, Ontario
Cells.FormatConditions.Delete
Target.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
Target.FormatConditions(1).Interior.ColorIndex = 27
End Sub
Hi:
I use the above code on one of my spreadsheets. What it does is change the color of a cell so that you can see exactly which cell is the active cell. I am having a oproblem when I copy the contents of a cell (right click, copy) and then go to another cell there is nothing there to paste. Also if I do something and then want to cotrrect it the Undo command is not available. I did not write this code so I am not sure on how to fix it. Any ideas?
THANKS,
Mark
Sudbury, Ontario