Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Further help on cell highlighting if change to contents

I am using the code below to indicate where a cell has changed value ( Thanks
Bob Philips,Bernie Deitrick).

As it is it works fine, but, is there anyway that the cell could be
highlighted when a cell is changed as a result of a formula change, as
opposed to a direct keyboard entry.
I have several OBDC downloads to run and it would be nice to quickly see
those cells that have changed.

Thanks.

Private Sub WORKSHEET_CHANGE(ByVal TARGET As Range)

If Intersect(TARGET, Range("AF5:BH5")) Is Nothing Then Exit Sub

On Error GoTo ws_exit
Application.EnableEvents = False

With TARGET
.Interior.ColorIndex = 38
End With

ws_exit:
Application.EnableEvents = True

End Sub

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Further help on cell highlighting if change to contents

If you want to keep a record of before and after, compare each cell and
highlight them. No built in support for it.

--
Regards,
Tom Ogilvy


"Francois via OfficeKB.com" wrote:

I am using the code below to indicate where a cell has changed value ( Thanks
Bob Philips,Bernie Deitrick).

As it is it works fine, but, is there anyway that the cell could be
highlighted when a cell is changed as a result of a formula change, as
opposed to a direct keyboard entry.
I have several OBDC downloads to run and it would be nice to quickly see
those cells that have changed.

Thanks.

Private Sub WORKSHEET_CHANGE(ByVal TARGET As Range)

If Intersect(TARGET, Range("AF5:BH5")) Is Nothing Then Exit Sub

On Error GoTo ws_exit
Application.EnableEvents = False

With TARGET
.Interior.ColorIndex = 38
End With

ws_exit:
Application.EnableEvents = True

End Sub

--
Message posted via http://www.officekb.com


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Further help on cell highlighting if change to contents

Tom Ogilvy wrote:
If you want to keep a record of before and after, compare each cell and
highlight them. No built in support for it.

I am using the code below to indicate where a cell has changed value ( Thanks
Bob Philips,Bernie Deitrick).

[quoted text clipped - 22 lines]

End Sub



OK, Thanks for the reply.

--
Message posted via http://www.officekb.com

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
change cell contents when pull down menu choices change jb21 Excel Worksheet Functions 3 November 21st 08 10:34 PM
Can I change the cell highlighting colour? LJDL Excel Discussion (Misc queries) 3 March 7th 08 03:49 PM
Highlighting when a cells contents has changed Francois via OfficeKB.com Excel Programming 0 June 19th 07 01:36 PM
Change contents of a cell based on cell contents. Mahnian Excel Programming 3 May 4th 07 10:49 PM
Highlighting contents of cells Darlajane[_3_] Excel Programming 1 November 18th 04 01:43 PM


All times are GMT +1. The time now is 06:53 AM.

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

About Us

"It's about Microsoft Excel"