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: 1
Default SetLinkOnData only fires once?

I'm looking for a bit of help with an Excel "SetLinkOnData" problem.

I'm trying to update an SQL database when my spreadsheet is updated
via a DDE link. The spreadsheet has many DDE links on it, and I wish
to dynamically set the sub that SetLinkOnData runs when it detects an
event.
The code I have written seems to detect the first 'initial' change for
each DDE Link cell values but any further DDE updates do not fire
anything!



The code i'm using to configure the DDE SetLinkOnData events is (This
code is in the "Workbook_Open" code section)

'*Configure DDE Links*

aLinks = ActiveWorkbook.LinkSources(xlOLELinks)
If Not IsEmpty(aLinks) Then
For i = 1 To UBound(aLinks)
ActiveWorkbook.SetLinkOnData "=" & aLinks(i),
Module7.AddSQLData(x)
Next i
End With


Many Thanks



Paul P
 
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
Worksheet_Change fires even when no change? [email protected] Excel Programming 3 July 4th 07 01:26 AM
Which Fires First? okrob Excel Programming 4 February 22nd 07 07:11 PM
code error after autorecover fires Datasort Excel Programming 1 October 6th 05 07:49 PM
Stop SetLinkOnData Butaambala Excel Programming 0 June 10th 05 01:02 AM
SetLinkOnData help? Tom Ogilvy Excel Programming 1 July 15th 03 01:28 PM


All times are GMT +1. The time now is 11:52 PM.

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"