Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default problem with user form

I have the following program to indicate progress of a procedure. The user
form ProgInd contains one textbox (which has a blue background).

When I step through the program, it displays each value of i correctly but
when I run the program, all I get is the form with a caption and a white
background. At the end of the program, the form displays the value 1000 on a
blue background as it should.

I expect to see the value of i ticking over (albeit very quickly) as the
loop is processed.

Can someone tell me how to get the desired result please?
Thanks
Chris

Sub testprog()
ProgInd.Show False
For i = 1 To 1000
ProgInd.TextBox1.Value = i
perform some operations
Next i
End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default problem with user form

Its ok, figured I needed a doevents after setting the value of the textbox


"chris" wrote in message
u...
I have the following program to indicate progress of a procedure. The user
form ProgInd contains one textbox (which has a blue background).

When I step through the program, it displays each value of i correctly but
when I run the program, all I get is the form with a caption and a white
background. At the end of the program, the form displays the value 1000 on

a
blue background as it should.

I expect to see the value of i ticking over (albeit very quickly) as the
loop is processed.

Can someone tell me how to get the desired result please?
Thanks
Chris

Sub testprog()
ProgInd.Show False
For i = 1 To 1000
ProgInd.TextBox1.Value = i
perform some operations
Next i
End Sub




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
Problem with date in user form Ivo_69 New Users to Excel 3 June 24th 09 02:35 PM
User Form Problem ??? mully New Users to Excel 5 July 2nd 08 11:53 AM
User form problem Freshman Excel Worksheet Functions 3 November 6th 06 05:54 PM
User Form Problem DCSwearingen Excel Discussion (Misc queries) 2 December 30th 05 03:42 PM
User Form Problem DCSwearingen Excel Discussion (Misc queries) 0 December 29th 05 11:04 PM


All times are GMT +1. The time now is 11:40 PM.

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"