Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disabling the Key board shortcuts

Hi all,

I have tried with the following code Application.OnKey "^{s}", "".
but when i enter any data in the sheet and press "Ctrl S" then the
changes will be applied to the sheet.

i want to disable "ctrl S" completely. please help me out.....

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Disabling the Key board shortcuts

these worked for me:

Sub StopCtrlS()
Application.OnKey "^s", ""
End Sub

Sub RestoreCtrlS()
Application.OnKey "^s"
End Sub

but you have to Execute the code to effect the change.

--
Regards,
Tom Ogilvy




"rags" wrote:

Hi all,

I have tried with the following code Application.OnKey "^{s}", "".
but when i enter any data in the sheet and press "Ctrl S" then the
changes will be applied to the sheet.

i want to disable "ctrl S" completely. please help me out.....


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
clip board Ian Excel Discussion (Misc queries) 1 March 15th 10 01:24 PM
f2 key in key board khalid mahmood New Users to Excel 1 December 31st 07 01:02 PM
Key Board Shortcuts sree kasi New Users to Excel 4 March 29th 07 09:38 AM
Assigning Key Board Shortcuts !! Shrikant Excel Discussion (Misc queries) 2 August 22nd 05 12:57 PM
Switch board pgc Excel Programming 1 June 18th 05 02:18 PM


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