![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: Paul
Posts: 34
|
Hi all,
I've been trying to have my form display a "Loading files...Please wait" message whilst it opens a file. However, the following code displays the label after it has opened the file (i.e. - too late!). How can I display the label before commencing the opening of the file? Any thoughts?? Many Thanks in anticipation. Cheers - Paul Private Sub loadsup_Click() lblwait.Visible = True lblwait.Caption = "Loading files...Please wait" ChDir "C:blah blah" Workbooks.Open Filename:="C:blah blahtest.xls" |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi Paul
Use the UserForm.RePaint Method
Replace UserForm1 with the name of your form. Tom |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: Paul
Posts: 34
|
Not sure how to edit initial post (answers on a postcard) but PROBLEM SOLVED.
MANY THANKS! Cheers - Paul |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|