Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

Anyone know an answerr?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brotherwarren - 17 Apr 2008 08:16 GMT
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
paul.robinson@it-tallaght.ie - 17 Apr 2008 08:55 GMT
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,
>
[quoted text clipped - 24 lines]
>
> \Tony
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.