Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SheetChange Event

Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Target As Range)
Target.Font.ColorIndex = 5
End Sub

While sh holds a reference to the sheet where the cell was changed, Target
also contains that information, so no additional code is needed nor is a
separate reference to the sheet needed.

--
Regards,
Tom Ogilvy



"Paul" wrote in message
...
Hi All,

I need a little help with SheetChange Event. What additional code is

needed
to test the following example? I understand code is required that

connects
the sheet name to syntax when placed in the Microsoft Visual Basic tool.
However, I've not been able to determine the code.

Here is the example:

This example changes the color of changed cells to blue.

Private Sub Worksheet_Change(ByVal Target as Range)
Target.Font.ColorIndex = 5
End Sub

I really appreciate you'll assistance.

Thanks
Paul



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SheetChange Event crispbd[_34_] Excel Programming 0 November 23rd 04 06:43 PM
sheetChange event and list validation Nick Excel Programming 1 October 20th 04 10:34 PM
XLapp and SheetChange strataguru[_5_] Excel Programming 1 October 8th 03 04:39 PM
SheetChange event starts before .calculate finished Stephen Bullen Excel Programming 5 September 13th 03 01:34 AM
SheetChange event starts before .calculate finished Dave Peterson[_3_] Excel Programming 2 September 9th 03 08:49 AM


All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"