Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2006, 09:04 AM
Authorized User
 
Join Date: Apr 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default MSGBOX without any buttons

Hi everyone,

I have created a report in excel with 8 worksheets. When opening this report, all 8 pivot tables are refreshed which will take some time. I want to add a Msgbox that shows that worksheet n is refreshed but I dont want see an OK button because it will postpone until I press OK. Is there a way to show a msgbox with the corresponding worksheet name and that this is being updated when worksheet n+1 is refreshed BUT without any buttons?.

Rgrds,

Paul.

 
Old November 9th, 2006, 11:38 AM
Authorized User
 
Join Date: Sep 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could set up a progress bar that would show status for each update as it completes. Best resource I have used is John Walkenbach's Excel 2002 Power Programming. The book is awesome and a must have for programming in VBA. In it he has an example for doing this. Basically you use a userform and not a message box. That way you program still runs in the background. The key is you need to figure out how/where in your program you can update the userform (doevents command). load the form first and then update it as the program changes in the background. I use this in combination with a flash screen frequently to prevent people from canceling the update accidentally

http://j-walk.com/ss/
http://j-walk.com/ss/excel/tips/tip34.htm


Another option is to use the status bar at the bottom of the screen

Application.Statusbar = "your text here" 'enter your statusbar message
Application.Statusbar = False 'resets the statusbar to the default operation



DaveG





Similar Threads
Thread Thread Starter Forum Replies Last Post
Msgbox rwalker ASP.NET 1.x and 2.0 Application Design 28 March 20th, 2008 01:23 PM
Msgbox Help darrenb Access VBA 2 June 8th, 2007 12:53 AM
MsgBox prabodh_mishra Pro VB 6 1 December 29th, 2006 11:51 AM
msgbox Ramakrishna.G General .NET 3 September 14th, 2004 02:17 AM
help with Msgbox helmekki Excel VBA 2 June 25th, 2004 08:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.