LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Run a macro when a cell is changed by an outside source

I am trying to run a macro when cell E5 is equal to 1. I have the
following code in my workbook:

Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$E$5"
If Target.Value = 1 Then
Call Archive
End If
Case Else
End Select
End Sub

So this should run the "Archive" macro when E5 is 1. It does run the
macro perfectly when I manually input the value 1 into that cell. No
problems whatsoever. But, that cell is grabbing its value from some
external software called ProServer, the cell formula is
=PROSERVR|'GP1'!RESULT_1. The value is sent as a bit, so Excel sees it
as 0 or 1. If I watch the sheet while my ProServer program is running,
it clearly changes the value from 0 to 1 and then back to 0, as it
should. But my macro does not run when this occurs. My question is, how
is my entering the value manually any different than grabbing a value
from an outside soure. Auto-calculate is on, I'm running Excel 2003 on
WinXP if that helps. Let me know if more details are needed. Thanks for
any help you can give.

-Jon

 
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
run macro automatically when cell content is changed? Kathrine Excel Worksheet Functions 1 March 22nd 07 10:44 PM
Run Macro when particular cell is changed? Dr.Ile Excel Programming 0 November 2nd 04 09:30 AM
Run Macro when particular cell is changed? mangesh_yadav[_153_] Excel Programming 0 November 2nd 04 09:21 AM
Run an excel macro when a cell value is changed VonnerNIX[_3_] Excel Programming 0 September 28th 04 02:17 PM
Automaticlly Running Macro on Changed Cell Chris Excel Programming 1 December 2nd 03 03:54 PM


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