Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Does anyone know how to make the cell highlight, only when it it selected,
and keep moving with the curser as you move around the spreadsheet? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You may want to try Chip Pearson's Rowliner:
http://www.cpearson.com/excel/RowLiner.htm JayBham62 wrote: Does anyone know how to make the cell highlight, only when it it selected, and keep moving with the curser as you move around the spreadsheet? -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Paste this into the files Thisworkbook Module - Selected cell will be
highlighted in all your sheets - even better this macro does not affect existing Conditional formatting.. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Static OldCell As Range If Application.CutCopyMode = 0 Then If Not OldCell Is Nothing Then OldCell.Interior.ColorIndex = xlColorIndexNone OldCell.Borders.LineStyle = xlLineStyleNone End If Set OldCell = Target OldCell.Interior.ColorIndex = 6 OldCell.Borders.LineStyle = xlContinuous Else If OldCell Is Nothing Then Set OldCell = Target Else Set OldCell = Union(OldCell, Target) End If End If End Sub "JayBham62" wrote: Does anyone know how to make the cell highlight, only when it it selected, and keep moving with the curser as you move around the spreadsheet? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() "Jim May" wrote: Paste this into the files Thisworkbook Module - Selected cell will be highlighted in all your sheets - even better this macro does not affect existing Conditional formatting.. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Static OldCell As Range If Application.CutCopyMode = 0 Then If Not OldCell Is Nothing Then OldCell.Interior.ColorIndex = xlColorIndexNone OldCell.Borders.LineStyle = xlLineStyleNone End If Set OldCell = Target OldCell.Interior.ColorIndex = 6 OldCell.Borders.LineStyle = xlContinuous Else If OldCell Is Nothing Then Set OldCell = Target Else Set OldCell = Union(OldCell, Target) End If End If End Sub "JayBham62" wrote: Does anyone know how to make the cell highlight, only when it it selected, and keep moving with the curser as you move around the spreadsheet? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Jim That is cool!
"Jim May" wrote: Paste this into the files Thisworkbook Module - Selected cell will be highlighted in all your sheets - even better this macro does not affect existing Conditional formatting.. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Static OldCell As Range If Application.CutCopyMode = 0 Then If Not OldCell Is Nothing Then OldCell.Interior.ColorIndex = xlColorIndexNone OldCell.Borders.LineStyle = xlLineStyleNone End If Set OldCell = Target OldCell.Interior.ColorIndex = 6 OldCell.Borders.LineStyle = xlContinuous Else If OldCell Is Nothing Then Set OldCell = Target Else Set OldCell = Union(OldCell, Target) End If End If End Sub "JayBham62" wrote: Does anyone know how to make the cell highlight, only when it it selected, and keep moving with the curser as you move around the spreadsheet? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the feedback; glad it worked for you...
"JayBham62" wrote: Thanks Jim That is cool! "Jim May" wrote: Paste this into the files Thisworkbook Module - Selected cell will be highlighted in all your sheets - even better this macro does not affect existing Conditional formatting.. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Static OldCell As Range If Application.CutCopyMode = 0 Then If Not OldCell Is Nothing Then OldCell.Interior.ColorIndex = xlColorIndexNone OldCell.Borders.LineStyle = xlLineStyleNone End If Set OldCell = Target OldCell.Interior.ColorIndex = 6 OldCell.Borders.LineStyle = xlContinuous Else If OldCell Is Nothing Then Set OldCell = Target Else Set OldCell = Union(OldCell, Target) End If End If End Sub "JayBham62" wrote: Does anyone know how to make the cell highlight, only when it it selected, and keep moving with the curser as you move around the spreadsheet? |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Nice sub there, Jim.
Is there a way for a user choice to toggle the feature on/off, when the wb is opened? Eg: when I'm working on the wb, I may want it to be toggled off so that undo is not disabled (as per normal). But when I'm presenting/discussing the wb with others, I wld like to have the cell highlight feature "on". Thanks -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Max;
My initial response goes to perhaps setting up a Flag (boolean) type for On/Off, True/False... you know... "Max" wrote: Nice sub there, Jim. Is there a way for a user choice to toggle the feature on/off, when the wb is opened? Eg: when I'm working on the wb, I may want it to be toggled off so that undo is not disabled (as per normal). But when I'm presenting/discussing the wb with others, I wld like to have the cell highlight feature "on". Thanks -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
highlight curser so I can see it | Excel Discussion (Misc queries) | |||
spreadsheet Curser | Excel Discussion (Misc queries) | |||
Wild curser | Excel Discussion (Misc queries) | |||
Wild curser | Excel Discussion (Misc queries) | |||
Highlight cells with ctrl-click but only un-highlight one cell | Excel Discussion (Misc queries) |