View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson[_3_] Jim Thomlinson[_3_] is offline
external usenet poster
 
Posts: 983
Default Module runs twice

There are any number of reasons for this. Often It has to do with a recursive
call, but without seeing your code I can't tell. Are there any event triggers
such as on_change or such. They are a good place to start looking...

"samjaynes" wrote:


I created a module and made it an add-in. If I run the code directly
from the visual basic editor, it runs just fine. If I create a
customized menu option and assign the macro/sub to it (for example:
ADO_UpdateDB() ) it runs through the code completely -twice-.

I am wondering what is causing it to run twice????

Any assistance would be appreciated.


--
samjaynes
------------------------------------------------------------------------
samjaynes's Profile: http://www.excelforum.com/member.php...o&userid=16277
View this thread: http://www.excelforum.com/showthread...hreadid=277861