PC Review


Reply
Thread Tools Rate Thread

awaiting the execution of code...

 
 
Brad
Guest
Posts: n/a
 
      9th Oct 2007
I have a Selection.FormulaArray line of code that has to wait on a link to
supply data to compute the array formula and populate the cells it controls.

Well, from those data, I calculate min and max cell values to carry over to
a chart to define the limits on the Y-axis.

My issue is the code executes down and to the point where it wants those min
and max values, but they are not available... yet... so I get an error
message.

I have tried Application.Wait Now + TimeValue ("00:00:15") and other similar
tactics hoping to slow the execution of the code until the
Selection.FormulaArray grabs its data and performs the calculations, but in
every case, whatever method I employ seems to stop the calculation process,
so I gain no advantage by attempting to sort of pause the code execution
until the data are ready for the min and max variables.

What a mess... I am looking for some way to work around this. My thanks
in advance for any suggestions.

B. Reid


 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      9th Oct 2007
Have you tried placing DoEvents before the chart processing?
Brad wrote:
> I have a Selection.FormulaArray line of code that has to wait on a link to
> supply data to compute the array formula and populate the cells it controls.
>
> Well, from those data, I calculate min and max cell values to carry over to
> a chart to define the limits on the Y-axis.
>
> My issue is the code executes down and to the point where it wants those min
> and max values, but they are not available... yet... so I get an error
> message.
>
> I have tried Application.Wait Now + TimeValue ("00:00:15") and other similar
> tactics hoping to slow the execution of the code until the
> Selection.FormulaArray grabs its data and performs the calculations, but in
> every case, whatever method I employ seems to stop the calculation process,
> so I gain no advantage by attempting to sort of pause the code execution
> until the data are ready for the min and max variables.
>
> What a mess... I am looking for some way to work around this. My thanks
> in advance for any suggestions.
>
> B. Reid


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Still Awaiting SP-2 CWLee Windows Vista General Discussion 9 28th Jul 2009 06:21 PM
Code Execution =?Utf-8?B?QmFyZW4=?= Microsoft Dot NET Framework 2 26th Apr 2006 01:11 AM
managed code execution from unmanaged code; AppDomain dotnetchic@gmail.com Microsoft C# .NET 2 27th Jan 2006 05:52 PM
Still Awaiting Assistance Compu-Pikachu Windows XP Help 58 1st Apr 2005 11:48 AM
code runs well on 3rd execution after getting Error: 3021 on 1st 2 execution =?Utf-8?B?eWFubg==?= Microsoft Access VBA Modules 0 23rd Mar 2004 10:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 PM.