Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default Howeractivate Excel after a macro failure

To improve performance, at the beginning of my macros, I do
DoNotPopulate = True
Application.ScreenUpdating = False
and restore these at the end. How do I manually re-enable excel sheet
operation if the macro fails before completion? Ctl-Brk or Run - Reset is no
help.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default Howeractivate Excel after a macro failure

From the Immediate window, you can type application.screenupdating = true
I have no idea about the donotpopulate as that is something I am unfamiliar
with. (Perhaps also from the immdiate window, but I wouldn't want to say.)
You could also run a macro. I saw this idea on (I believe) dailydoseofxcel
blog (dick's blog.) I think I copied this into my personal.xls. Let me
check ...

Public Sub ResetExcel()
On Error Resume Next
Application.EnableEvents = True
Application.StatusBar = False
Application.Calculation = xlAutomatic
Application.Cursor = xlDefault
Application.ReferenceStyle = xlA1
ActiveSheet.EnableSelection = xlNoRestrictions
ActiveSheet.ClearArrows
ActiveSheet.DisplayAutomaticPageBreaks = False
End Sub

Actually was not in personal.xls but I am putting it there now.
--
Kevin Vaughn


"John" wrote:

To improve performance, at the beginning of my macros, I do
DoNotPopulate = True
Application.ScreenUpdating = False
and restore these at the end. How do I manually re-enable excel sheet
operation if the macro fails before completion? Ctl-Brk or Run - Reset is no
help.

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
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Macro to close excel okanem Excel Discussion (Misc queries) 1 July 19th 05 10:01 AM
passing arguments from an excel macro to a word macro KWE39 Excel Discussion (Misc queries) 1 July 7th 05 03:56 PM
Excel macro that opens new MS Word file and pastes data as a pictu Rob Excel Worksheet Functions 0 July 6th 05 05:12 PM


All times are GMT +1. The time now is 04:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"