MarkCBB
Active Member
- Joined
- Apr 12, 2010
- Messages
- 497
Hi there VBA Pros,
I am need to some code to highligh (or BOLD, Incease size) of the active cell that is selected. I.e. when a user is busy looking at the database and they select cell G7, the whole row 7 is highlighted, making it easier for the user to see what data is related?
Can this be done? or is there a better way to do this.
I was thinking this code from Mr Excel (Bill), could be changed so that the image is a Box and it automatically fits under the row of the active cell?
I am need to some code to highligh (or BOLD, Incease size) of the active cell that is selected. I.e. when a user is busy looking at the database and they select cell G7, the whole row 7 is highlighted, making it easier for the user to see what data is related?
Can this be done? or is there a better way to do this.
I was thinking this code from Mr Excel (Bill), could be changed so that the image is a Box and it automatically fits under the row of the active cell?
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.Shapes("Diagram 1").Left = _
ActiveWindow.VisibleRange.Cells(2, 3).Left
ActiveSheet.Shapes("Diagram 1").Top = _
ActiveWindow.VisibleRange.Cells(2, 3).Top
End Sub