Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Reseting A Spreadsheet

What VBA command is equivalent to pressing the "esc" key? Or what other code should I place at the end of a macro to "reset" the worksheet so that the menu bar buttons will show again?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Reseting A Spreadsheet

Hi Paul

Please more information

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Paul" wrote in message ...
What VBA command is equivalent to pressing the "esc" key? Or what other code should I place at the end of a macro to "reset"

the worksheet so that the menu bar buttons will show again?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Reseting A Spreadsheet

Ron,

sometimes when I run macros, while the macro has control of the worksheet, many of the buttons on my tool bar are grayed out so that they cannot be selected. Once the macro ends, those buttons usually reapper in full color indicating they can be selected.

Every now and then when I run a macro, control does not seem to be entirely restrored to the worksheet upon the macro finishing. HOWEVER, the moment I push the "esc" key, or left click my mouse, or perform a cut & paste, everything reverts back to normal and the toolbar buttons appear ready for selection. I was just wondering if I could put one last line in any macro that I experience this minor annoyance with to save me from having to perform the final keystroke manually.

Hope this helps,
Paul
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Reseting A Spreadsheet

Paul

You have some other issue which leads to the "non-restoration" at the end of
your macros.

That should be addressed first.

That said, if the Esc key restores, try this at end of macro.

SendKeys "{ESC}"

Gord Dibben Excel MVP



On Wed, 18 Feb 2004 16:01:06 -0800, "Paul"
wrote:

Ron,

sometimes when I run macros, while the macro has control of the worksheet, many of the buttons on my tool bar are grayed out so that they cannot be selected. Once the macro ends, those buttons usually reapper in full color indicating they can be selected.

Every now and then when I run a macro, control does not seem to be entirely restrored to the worksheet upon the macro finishing. HOWEVER, the moment I push the "esc" key, or left click my mouse, or perform a cut & paste, everything reverts back to normal and the toolbar buttons appear ready for selection. I was just wondering if I could put one last line in any macro that I experience this minor annoyance with to save me from having to perform the final keystroke manually.

Hope this helps,
Paul


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Reseting A Spreadsheet

Gordon

This does it. Thank you very much

Paul
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
Reseting to 0. GEM Excel Discussion (Misc queries) 3 April 3rd 09 12:22 AM
Reseting named ranges. Jim Excel Discussion (Misc queries) 4 September 11th 06 01:04 PM
VBA reseting variables Jeff Excel Discussion (Misc queries) 0 February 4th 06 08:22 PM
VBA reseting variables bpeltzer Excel Discussion (Misc queries) 0 February 4th 06 03:52 PM
name box reseting lrod1843 Excel Discussion (Misc queries) 1 June 16th 05 12:51 AM


All times are GMT +1. The time now is 10:54 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"