Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default setlinkondata code error causes multiple event firing and locking upcode.

Hello,

I have a line of code below that uses setlinkondata. This works good
as long as no errors happen in the sub Run_Program. If error does
happen and the code stops for something like a Type mismatch then the
setlinkondata keeps firing Sub Run_Program continuously, and I can
never get out of the program without Ending it in Task Manager. Does
anyone have an idea why this is? Does VBA need to see some feedback
that the sub has completed within a certain amount of time or it fires
the event again?

ThisWorkbook.SetLinkOnData myLink, "'Run_Program " & i & "'"

Thanks,
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
Event not firing Shell Excel Programming 6 August 27th 08 04:24 PM
Click event on menu item is lost after first time firing of the event [email protected] Excel Programming 1 April 2nd 07 01:25 PM
Event sometimes stops firing? HotRod Excel Programming 7 May 5th 05 12:20 AM
Code for App level event (not firing) Chris W[_3_] Excel Programming 2 February 28th 05 02:57 AM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


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

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"