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

You can try putting a DoEvents statement in the loop. This might work
if the loop depends on an event which for some reason isn't registering
when the loop is running.

Just a stab in the dark (maybe one of the gurus can make a stab in the
light)

-John Coleman

Freddy wrote:
I have a working Visual Basic Module that successfully runs standalone. Now,
I am trying to invoke/call it from a userform. However, it runs then loops
instead of stopping. I have stepped through the code using F8 and it does not
loop. It appears that things have to "slow down" for it to work. Any
solutions?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Continuous Loop

Maybe it would be helpful if you posted the userform code that calls
the macro.

Freddy wrote:
There is no intention to perform any loop. The task is to open a master
workbook, then open other workbooks to be used as input to the master
workbook, then print the master workbook, then close all open workbooks. For
some unknown reason it runs the code again and again.

"John Coleman" wrote:

You can try putting a DoEvents statement in the loop. This might work
if the loop depends on an event which for some reason isn't registering
when the loop is running.

Just a stab in the dark (maybe one of the gurus can make a stab in the
light)

-John Coleman

Freddy wrote:
I have a working Visual Basic Module that successfully runs standalone. Now,
I am trying to invoke/call it from a userform. However, it runs then loops
instead of stopping. I have stepped through the code using F8 and it does not
loop. It appears that things have to "slow down" for it to work. Any
solutions?




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
continuous typing FX Excel Discussion (Misc queries) 2 August 18th 07 07:22 PM
Loop for copying data, then pasting in a continuous row Bhupinder Rayat Excel Programming 5 July 7th 06 04:31 PM
Continuous Alphabetization tomcat017 Excel Worksheet Functions 2 January 28th 06 04:35 PM
Continuous Range DSC174[_2_] Excel Programming 3 October 10th 05 05:17 PM
Continuous View Stacey Excel Discussion (Misc queries) 2 July 22nd 05 11:19 PM


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