user information
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » User Information

User Information

resolvedResolved · Medium Priority · Version 2010

replyReply Thu 20 Oct 2011, 09:42Delegate Graham said...

Graham has attended:
Excel VBA Intro Intermediate course

User Information

Hi, I have a VBA program that can run an ODBC link to update information. This works fine but the screen appears to be doing nothing while this happens. So I would like to display something like a message box on the screen advising that "Program Running" which will then disappear when the ODBC has completed. I have looked at Message boxes but they appear to requrie user to atleast press one button and the program will stop until they have responded which is not what I really want.

Is the a display only type information box? Thanks Graham

For upcoming training course dates see: Pricing & availability

replyReply Mon 24 Oct 2011, 00:24Trainer Mark said...

RE: User Information

Hello Graham,

You could try the following:
Create a userform with message such as Please Wait...
e.g. form name is called WaitForm

Then include this line at the beginning of the Sub routine that connects ODBC etc..
WaitForm.Show False


Then at the end of the Routine, just before the End Sub line, place this line:
WaitForm.Hide

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

replyReply Thu 27 Oct 2011, 14:49Delegate Graham said...

RE: User Information

Hi Mark

I have tried what you suggest. The closest I have got is by making the modal property false to prevent stopping the VBA code running background.

However I now only get a blank user form i.e. it does not display the text label where I have typed the message to be displayed.

Does it make a difference that I already have a user form which I unload before trying to display the message?

Graham

replyReply Mon 31 Oct 2011, 09:14Trainer Mark said...

RE: User Information

Hello Graham,

Without seeing the actual code I could be sending numerous suggestions. If you could send over some sample code that is running, I could have a quick look.
mm

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

 

Please browse our web site to find out more about
basic training excel and other Microsoft training courses.

Excel tip:

Charts

Select the data and press the function key F11 and the chart will be created on a separate worksheet.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard