PC Review


Reply
Thread Tools Rate Thread

Anyone know an answerr?

 
 
Brotherwarren
Guest
Posts: n/a
 
      17th Apr 2008
Hi folks,

Does anyone know anything at all about this problem:

I have a worksheet containing a scroll bar, taken from the control
toolbox.
The code for this scrollbar'schange event copies information from
about 20 different cells into about 20 textboxes, displayed on the
worksheet. Again, they are control toolbox textboxes.

I have a separate sub, PrintSelectedValues that sets the value of the
scrollbar, then prints out the results, then changes the scrollbar
value again before printing a new page, then changes...for about 50
different scrollbar values

the problem is that the PrintSelectedValues sub to change the
scrollbar's values seems to outpace excels ability to refresh the
textboxes, and I get a jumbled mess of results. The first page to
print is fine, then PrintSelectedValues changes the scrollbar's value
but the textboxes don't update in time. The paper copy contains some
information from the first scrollbar value, mixed in with some from
the second.


I've tried to use a DoEvents command before the print command but I
still get the same problem
Many thanks for any and all advice!


\Tony

 
Reply With Quote
 
 
 
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      17th Apr 2008
Hi
Have you tried throwing in a LOT of DoEvents e.g. every time a
scrollbar updates.
regards
Paul

On Apr 17, 8:16*am, Brotherwarren <twar...@kesgrave.suffolk.sch.uk>
wrote:
> Hi folks,
>
> Does anyone know anything at all about this problem:
>
> I have a worksheet containing a scroll bar, taken from the control
> toolbox.
> The code for this scrollbar'schange event copies information from
> about 20 different cells into about 20 textboxes, displayed on the
> worksheet. *Again, they are control toolbox textboxes.
>
> I have a separate sub, PrintSelectedValues that sets the value of the
> scrollbar, then prints out the results, then changes the scrollbar
> value again before printing a new page, then changes...for about 50
> different scrollbar values
>
> the problem is that the PrintSelectedValues sub to change the
> scrollbar's values seems to outpace excels ability to refresh the
> textboxes, and I get a jumbled mess of results. *The first page to
> print is fine, then PrintSelectedValues changes the scrollbar's value
> but the textboxes don't update in time. *The paper copy contains some
> information from the first scrollbar value, mixed in with some from
> the second.
>
> I've tried to use a *DoEvents command before the print command but I
> still get the same problem
> Many thanks for any and all advice!
>
> \Tony


 
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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 PM.