![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 465
|
Hello to all. James was kind enough to post the following code foe me. Although it does format to my liking, it also highlights the entire range each time a different cell is updated. Any suggestions?
Here's the code: Private Sub Worksheet_Change(ByVal Update As Range) Sheets("Sheet1").Unprotect Password:="Anthony" If Intersect(Update, Range("A1:A5")) Is Nothing Then Exit Sub With Update Range("A1:A5").Select .Font.Bold = True .Font.Italic = True With.Interior .ColorIndex = 38 .Pattern = xlSolid End With End With Sheets("Sheet1").Protect Password:="Anthony" End Sub Thanks, Anthony |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Try this untested...
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 465
|
Thanks for the response Tom, but the entire range continues to highlight upon updating only one cell. Any other suggestions?
Thanks Again, Anthony |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
What range is defined by "Update"?
I can not test this code on my machine without this info. Also, what exactly are you doing here? Thanks, Tom |
|
|
|
|
|
#5 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Try this untested...
_________________ Cheers, NateO ![]() [ This Message was edited by: NateO on 2002-05-13 20:33 ] |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 465
|
Thanks for the replies, but I'm still not having any luck with the formula. Nate, when I applied your version, the entire range highlights in a specific color.
Tom - I'm responsible for maintaining a workbook that contains 15 worksheets with an enourmous amount of data. Users make adjustments to the file and send it back to me to conduct an analysis. I am looking for a way to track those changes without sharing the workbook. Any more suggestions? Thanks a million!!!! Anthony |
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Private Sub Worksheet_Change(ByVal Update As Range) Sheets("Sheet1").Unprotect Password:="Anthony" If Intersect(Update, Range("A1:A5")) Is Nothing Then Exit Sub With Update .Font.Bold = True .Font.Italic = True With .Interior .ColorIndex = 38 .Pattern = xlSolid End With End With Sheets("Sheet1").Protect Password:="Anthony" End Sub |
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Mar 2002
Posts: 465
|
Ivan it worked!!! Thank you and everone else who took the time to assist me.
Anthony |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|