Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by Bright01
at 2024-07-21 06:03:37
Point:500 Replies:12 POST_ID:829056USER_ID:11896
Topic:
Microsoft Excel Spreadsheet Software;;
EE Pros,
How do I change the condition for the active cell within Excel, to be highlighted? Right now it's simply a bold box that shows up on the active cell. Is there a way to either increase the boldness of the box on the active cell or give it some color? It would make it easier to see in a large Worksheet.
Thank you,
B.
How do I change the condition for the active cell within Excel, to be highlighted? Right now it's simply a bold box that shows up on the active cell. Is there a way to either increase the boldness of the box on the active cell or give it some color? It would make it easier to see in a large Worksheet.
Thank you,
B.
Author: Bright01 replied at 2024-07-21 09:48:38
Works great! Much thanks.........
B.
B.
Accepted Solution
Expert: MacroShadow replied at 2024-07-21 07:20:58
500 points EXCELLENT
That will only happen the first time, since the previous range wasn't set yet.
You can either precede that line with on error resume next or better yet check if rngPrevious isn't nothing.
You can either precede that line with on error resume next or better yet check if rngPrevious isn't nothing.
Option ExplicitPublic rngPrevious As RangePublic lngColor As LongPrivate Sub Worksheet_SelectionChange(ByVal Target As Range) Application.ScreenUpdating = False ' re-apply Interior.ColorIndex to previous cell If Not rngPrevious Is Nothing Then rngPrevious.Interior.ColorIndex = lngColor ' Save original Interior.ColorIndex of curent cell lngColor = Target.Interior.ColorIndex Set rngPrevious = Target ' Highlight the active cell Target.Interior.ColorIndex = 8 Application.ScreenUpdating = TrueEnd Sub 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:
Author: Bright01 replied at 2024-07-21 07:09:16
I get a debug error on line: rngPrevious.Interior.colorindex=lngcolor
Expert: MacroShadow replied at 2024-07-21 06:59:17
Try this:
Public rngPrevious As RangePublic lngColor As LongPrivate Sub Worksheet_SelectionChange(ByVal Target As Range) Application.ScreenUpdating = False ' re-apply Interior.ColorIndex to previous cell rngPrevious.Interior.ColorIndex = lngColor ' Save original Interior.ColorIndex of curent cell lngColor = Target.Interior.ColorIndex Set rngPrevious = Target ' Highlight the active cell Target.Interior.ColorIndex = 8 Application.ScreenUpdating = TrueEnd Sub 1:2:3:4:5:6:7:8:9:10:11:12:13:14:
Author: Bright01 replied at 2024-07-21 06:52:05
Duncan,
It's not that I want to change the cell style for a group of cells; it's that I want to highlight the cell I'm hovering over so I can see it better.......
B.
It's not that I want to change the cell style for a group of cells; it's that I want to highlight the cell I'm hovering over so I can see it better.......
B.
Author: Bright01 replied at 2024-07-21 06:46:20
I'm already using Conditional formatting for the content that is going into the cells. I'm trying to highlight the cursor as I hover over the cells... so I can see them better.
B.
B.
Expert: Anthony Berenguel replied at 2024-07-21 06:39:54
Is there a reason you can't use conditional formatting?
Expert: duncanb7 replied at 2024-07-21 06:34:32
take a look at this for Excel Cell for cell style from MS manual
http://office.microsoft.com/en-001/excel-help/apply-create-or-remove-a-cell-style-HP001216732.aspx
Please let us know if want it on VBA
Duncan
http://office.microsoft.com/en-001/excel-help/apply-create-or-remove-a-cell-style-HP001216732.aspx
Please let us know if want it on VBA
Duncan
Author: Bright01 replied at 2024-07-21 06:31:21
Duncan,
I'm using 2010....tried to use the Cell Styles but it didn't work.
B.
I'm using 2010....tried to use the Cell Styles but it didn't work.
B.
Author: Bright01 replied at 2024-07-21 06:19:20
MicroShadow,
Almost works; but the ColorIndex = 0 changed all of my other colors in the WS. I only need the highlighting on the cell I'm covering, then it needs to return to its original color.
Thank you,
B.
Almost works; but the ColorIndex = 0 changed all of my other colors in the WS. I only need the highlighting on the cell I'm covering, then it needs to return to its original color.
Thank you,
B.
Expert: duncanb7 replied at 2024-07-21 06:15:11
Do you need to do it on Excel Cell only , please take a look the MS manual for highlight and add/remove broder of the cell at this sites ?
http://office.microsoft.com/en-gb/excel-help/highlight-cells-HP001216435.aspx
http://office.microsoft.com/en-001/excel-help/apply-or-remove-cell-borders-on-a-worksheet-HP001216433.aspx
Duuncan
http://office.microsoft.com/en-gb/excel-help/highlight-cells-HP001216435.aspx
http://office.microsoft.com/en-001/excel-help/apply-or-remove-cell-borders-on-a-worksheet-HP001216433.aspx
Duuncan
Expert: MacroShadow replied at 2024-07-21 06:07:19
Try this macro, put it in the worksheet module:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.ScreenUpdating = False Cells.Interior.ColorIndex = 0 ' Clear the color of all the cells Target.Interior.ColorIndex = 8 ' Highlight the active cell Application.ScreenUpdating = TrueEnd Sub 1:2:3:4:5:6: