Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Holding a constant page while the macro runs in the background

Hello all...

I've got a macro the performs multiple file open steps and copies range data
back and forth between pages on alternating workbooks... the macro works
fine... what I'm looking to do is to hold a constant page while the macro
steps operate in the background and when all steps are completed, then to pop
a message box indicating that the file has been updated... any help would be
appreciated
--

Joe Mac
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Holding a constant page while the macro runs in the background

hi
add two lines of code.
at the beginning...
application.screenupdating = false
then at the end...
application.screenupdating = false
msgbox "updated"
end sub

regards
FSt1

"Joe Mac" wrote:

Hello all...

I've got a macro the performs multiple file open steps and copies range data
back and forth between pages on alternating workbooks... the macro works
fine... what I'm looking to do is to hold a constant page while the macro
steps operate in the background and when all steps are completed, then to pop
a message box indicating that the file has been updated... any help would be
appreciated
--

Joe Mac

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Holding a constant page while the macro runs in the background

Try...
at the start of your procedure place
Application.Screenupdating = False

& just above "End Sub"
Application.Screenupdating = True
msgbox "Completed Update"

"Joe Mac" wrote:

Hello all...

I've got a macro the performs multiple file open steps and copies range data
back and forth between pages on alternating workbooks... the macro works
fine... what I'm looking to do is to hold a constant page while the macro
steps operate in the background and when all steps are completed, then to pop
a message box indicating that the file has been updated... any help would be
appreciated
--

Joe Mac

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Holding a constant page while the macro runs in the background

This should do it for you.

Sub YourMacro()

Application.ScreenUpdating = False

'your code

MsgBox "The file has been updated."

Application.ScreenUpdating = True

End Sub
--
Cheers,
Ryan


"Joe Mac" wrote:

Hello all...

I've got a macro the performs multiple file open steps and copies range data
back and forth between pages on alternating workbooks... the macro works
fine... what I'm looking to do is to hold a constant page while the macro
steps operate in the background and when all steps are completed, then to pop
a message box indicating that the file has been updated... any help would be
appreciated
--

Joe Mac

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Holding a constant page while the macro runs in the background

Thank you - Exactly what I wanted in the performance
--

Joe Mac


"FSt1" wrote:

hi
add two lines of code.
at the beginning...
application.screenupdating = false
then at the end...
application.screenupdating = false
msgbox "updated"
end sub

regards
FSt1

"Joe Mac" wrote:

Hello all...

I've got a macro the performs multiple file open steps and copies range data
back and forth between pages on alternating workbooks... the macro works
fine... what I'm looking to do is to hold a constant page while the macro
steps operate in the background and when all steps are completed, then to pop
a message box indicating that the file has been updated... any help would be
appreciated
--

Joe Mac

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
Page Setup Macro runs slow William G Excel Discussion (Misc queries) 3 March 31st 09 07:31 PM
Holding the result of a formula constant or frozen Jumbo Jock Excel Worksheet Functions 1 May 21st 08 03:00 AM
holding the result constant [email protected] Excel Worksheet Functions 1 July 14th 06 11:46 PM
Macro that runs in the background tomwashere2 Excel Discussion (Misc queries) 0 October 22nd 05 10:40 PM
Runs possible on the background? aiyer[_51_] Excel Programming 2 August 30th 04 07:25 AM


All times are GMT +1. The time now is 10:15 PM.

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"