Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default userfom shows up white even though it's grey designed

Hi NG,

I run a Progressbar placed in an userform.
the userform is grey BackColor designed but appears
white when I run the code without "Stop" and the textbox
"tbProgBar" doesn't show up.

When I run the following code interrupted by "Stop"
everything is visible and stays visible when running
after the Stop. The only thing that is functionating in
both cases is the Progressbar. If I run everything
using "vbModal" it traps into a loop at that statement.

Has anyone an idea what is going on or better "going"
wrong? Thanks in advance for every hint.

Regards
Peter Ostermann
PS: environment Excel 2000

ufmProgressBar.ProgressBar1.Max = lastRow
Call ufmProgressBar_Modeless
For I = 2 To lastRow
ufmProgressBar.ProgressBar1.Value = I
ufmProgressBar.tbProgBar = ProgBarText
-.................

Sub ufmProgressBar_Modeless()
Unload ufmProgressBar
Load ufmProgressBar
ufmProgressBar.Show vbModeless
Stop
End Sub

Private Sub UserForm_Initialize()
ufmProgressBar.tbProgBar = ProgBarText
ufmProgressBar.BackColor = RGB(170, 170, 170)
ufmProgressBar.tbProgBar.Visible = True
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default userfom shows up white even though it's grey designed

Try issuing a DoEvents in the code


ufmProgressBar.ProgressBar1.Value = I
ufmProgressBar.tbProgBar = ProgBarText
DoEvents


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Peter Ostermann" wrote in message
...
Hi NG,

I run a Progressbar placed in an userform.
the userform is grey BackColor designed but appears
white when I run the code without "Stop" and the textbox
"tbProgBar" doesn't show up.

When I run the following code interrupted by "Stop"
everything is visible and stays visible when running
after the Stop. The only thing that is functionating in
both cases is the Progressbar. If I run everything
using "vbModal" it traps into a loop at that statement.

Has anyone an idea what is going on or better "going"
wrong? Thanks in advance for every hint.

Regards
Peter Ostermann
PS: environment Excel 2000

ufmProgressBar.ProgressBar1.Max = lastRow
Call ufmProgressBar_Modeless
For I = 2 To lastRow
ufmProgressBar.ProgressBar1.Value = I
ufmProgressBar.tbProgBar = ProgBarText
-.................

Sub ufmProgressBar_Modeless()
Unload ufmProgressBar
Load ufmProgressBar
ufmProgressBar.Show vbModeless
Stop
End Sub

Private Sub UserForm_Initialize()
ufmProgressBar.tbProgBar = ProgBarText
ufmProgressBar.BackColor = RGB(170, 170, 170)
ufmProgressBar.tbProgBar.Visible = True
End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default userfom shows up white even though it's grey designed

Thats it! Thanks Bob.

Peter Ostermann

"Bob Phillips" worte

Try issuing a DoEvents in the code


ufmProgressBar.ProgressBar1.Value = I
ufmProgressBar.tbProgBar = ProgBarText
DoEvents


--

HTH


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
Examples of Well Designed Spreadsheets JAD Excel Discussion (Misc queries) 0 February 20th 08 11:09 PM
EXCEL workbook is off-white, goes white in edit mode Joe Excel Discussion (Misc queries) 0 July 15th 06 12:45 PM
Is this designed for Offset Function? John Excel Worksheet Functions 8 June 24th 06 10:09 PM
My Excel 2000 shows 97 worksheets grey-blank - help!? MG-Trophy Excel Discussion (Misc queries) 2 December 21st 05 12:30 AM
Hide Excel but show the Userfom ??? Stift[_14_] Excel Programming 4 May 25th 04 12:51 PM


All times are GMT +1. The time now is 04:20 AM.

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"