Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default execute simultaneous macros

I would like to execute 2 macro´s at the same time. Something like
this:

Private Sub SimulationStart_click()

Do Until Range("B14").Value 1.2
Call ProcessCalculate ' runs calculations in the workbook.
Call LabelChange ' runs on a userform.
Loop

End Sub

The macro Processcalculate takes about 15 seconds to reach the value
1.2.

It seems that the macro labelchange executes when processcalculate is
done =(

Does anyone has an explanation for this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default execute simultaneous macros

LabelChange will not run until ProcessCalculate completes. If you want the
code from the former to run with the latter, put it into a single procedure.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Robert" wrote in message
ups.com...
I would like to execute 2 macro´s at the same time. Something like
this:

Private Sub SimulationStart_click()

Do Until Range("B14").Value 1.2
Call ProcessCalculate ' runs calculations in the workbook.
Call LabelChange ' runs on a userform.
Loop

End Sub

The macro Processcalculate takes about 15 seconds to reach the value
1.2.

It seems that the macro labelchange executes when processcalculate is
done =(

Does anyone has an explanation for this?


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
Execute Macros through Hyperlinks. [email protected] Excel Programming 6 January 18th 06 10:00 AM
How to execute Macros through Text Links? Sheikh Saadi Excel Discussion (Misc queries) 0 January 17th 06 07:02 PM
Multiple simultaneous macros and userforms Jex Excel Programming 3 April 27th 04 02:22 PM
How to execute macros not saved in a workbook David P.[_3_] Excel Programming 0 April 1st 04 02:51 AM
Execute macros under Excel and Oulook XP Dick Kusleika Excel Programming 0 September 4th 03 06:49 PM


All times are GMT +1. The time now is 10:28 AM.

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"