Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Short cut keys within excels VBA Forms

On previous versions if you put E&xit within the Caption property of a
command button, when you ran the code you could press Alt + X as a shortcut
to close the form. Does anyone know how to do this in Excel 2007 as this way
doesnt work.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Short cut keys within excels VBA Forms

I don't think that is the way it has ever worked. Perhaps you are thinking
of VB6, which does work this way. In Excel/VBA, you've always had to use the
Accelerator property to assign a keystroke to a control.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Richard" wrote in message
...
On previous versions if you put E&xit within the Caption property of a
command button, when you ran the code you could press Alt + X as a
shortcut
to close the form. Does anyone know how to do this in Excel 2007 as this
way
doesnt work.

Thanks


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
Short Cut keys Hardeep_kanwar[_2_] Excel Discussion (Misc queries) 2 January 12th 09 11:23 AM
Short Cut Keys Anne Excel Worksheet Functions 1 April 19th 07 05:10 PM
Assigning Short-Cut Keys Marco Excel Programming 1 August 6th 06 10:41 PM
short cut keys work- run macro does not snax500[_2_] Excel Programming 2 August 3rd 05 08:41 PM
priority of short cut keys Daniel Bonallack[_2_] Excel Programming 0 September 3rd 03 01:43 PM


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