Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sheet Update Problem

I have a LARGE excel file with more than 100 active cells,
buttons, conditional formating etc.
These cells receive information through RSLinx from
various PLC modules in our facility.

My Problem:
a few of these cells need to be used as "triggers"
When the value changes I want to open a msgbox alerting
the user of a change on that sheet or another sheet not
currently visible. Currently I can only get this to work
if the cell value changes due to direct user input from
the keyboard.
If a formula updates say from 0 to 1 the cell "value" is
still the formula typed into the cell, so the function:

Private Sub Worksheet_Change(ByVal Target As Range)
' do something
End Sub

does not fire. Likewise the function:

Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
' do something
End Sub

does not fire. (These are built in excel functions I
found in the help files.)
Am I trying to to do something that is not possible, or
just doing it wrong? If wrong, can someone show me how to
do it right?

Thanks in advance

Gary

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sheet Update Problem

What version of Excel are you using?

Look at the calculate event. You might need to store the value of the
cell(s) and compare to find if there was a change. It doesn't fire for a
specific cell like change or identify what cell changed

--
Regards,
Tom Ogilvy

Gary Desroches wrote in message
...
I have a LARGE excel file with more than 100 active cells,
buttons, conditional formating etc.
These cells receive information through RSLinx from
various PLC modules in our facility.

My Problem:
a few of these cells need to be used as "triggers"
When the value changes I want to open a msgbox alerting
the user of a change on that sheet or another sheet not
currently visible. Currently I can only get this to work
if the cell value changes due to direct user input from
the keyboard.
If a formula updates say from 0 to 1 the cell "value" is
still the formula typed into the cell, so the function:

Private Sub Worksheet_Change(ByVal Target As Range)
' do something
End Sub

does not fire. Likewise the function:

Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
' do something
End Sub

does not fire. (These are built in excel functions I
found in the help files.)
Am I trying to to do something that is not possible, or
just doing it wrong? If wrong, can someone show me how to
do it right?

Thanks in advance

Gary



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
Update a autofilter sheet from another sheet Don Excel Discussion (Misc queries) 1 June 18th 08 12:57 PM
Update Links problem andyp161 Excel Worksheet Functions 1 August 31st 05 04:19 PM
insert query into excell sheet to update excell sheet and pivot table vbsolo Excel Discussion (Misc queries) 0 August 24th 05 12:41 PM
update links - problem Micha³ S Links and Linking in Excel 2 February 17th 05 01:34 PM
SolverOK Problem after SP-3 Update Joe Zaccardi Excel Programming 2 September 27th 03 03:43 AM


All times are GMT +1. The time now is 10:43 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"