Computing.Net > Forums > Programming > VBA with MS Excel

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBA with MS Excel

Reply to Message Icon

Name: bijus_s
Date: August 15, 2008 at 08:01:39 Pacific
OS: XP
CPU/Ram: P4
Product: Intel
Comment:

I need to run a program to sort an excel sheet but dont want to see the processing/flash on screen going on. Hence want to keep a form/module/screen to show - "Please wait while the processing is going on" and the sorting program to run in background. How can i do that?




Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: August 17, 2008 at 19:42:17 Pacific
Reply:

You can set some text in the status bar, then disable screen updating. Like so:

Sub sorting()
On Error GoTo EoS 'This is important DO NOT skip it.
Application.StatusBar = "Please wait while the processing is going on"
Application.ScreenUpdating = False

'Sorting code here

'This is important DO NOT skip it.
EoS:
Application.ScreenUpdating = True
Application.StatusBar = False
If Err.Number Then _
MsgBox Err.Description, vbCritical + vbOKOnly, Err.Number
End Sub



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VBA with MS Excel

to convert MS-excel sheet to Access www.computing.net/answers/programming/to-convert-msexcel-sheet-to-access/17874.html

batch to change default program www.computing.net/answers/programming/batch-to-change-default-program/16988.html

MS EXCEL -VBA help www.computing.net/answers/programming/ms-excel-vba-help/6190.html