Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Module runs twice


I created a module and made it an add-in. If I run the code directl
from the visual basic editor, it runs just fine. If I create
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

--
samjayne
-----------------------------------------------------------------------
samjaynes's Profile: http://www.excelforum.com/member.php...fo&userid=1627
View this thread: http://www.excelforum.com/showthread.php?threadid=27786

  #2   Report Post  
Posted to microsoft.public.excel.programming
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


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
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs Rruffpaw Setting up and Configuration of Excel 1 September 17th 11 01:25 PM
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
One macro runs then it auto runs another macro PG Excel Discussion (Misc queries) 2 September 1st 06 09:30 PM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


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