Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Change Key Mapping

I have a fairly simple spreadsheet that I have protected columns with
formatting symbols. I want the users to only enter single digit values
into the unprotected cells and automatically skip the protected cells
containing a "," or ".". This seems to work when I use the TAB key.
However, if I press the Right Arrow or Enter key, I can end up on a cell
that is protected.
My question:
Is there a way to force the ENTER and RIGHT ARROW keys to behave as if a
TAB was pressed?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Change Key Mapping

before protecting the sheet, select the properties for the sheet and set the
enable selection property to xlUnlockedCells

you can access the properties of the worksheet in the VBE project explorer
by hitting F4 with the sheet selected to bring up the properties window

Another method is wish the sheet visible, make the control toolbox toolbar
visible and click the properties icon.

The setting for enable selection is lost when you close the workbook, so you
must set it each time the workbook is opened. You could do that in the
workbook_open event and if the user doesn't disable macros, it will be set
each time the workbook is opened.

--
Regards,
Tom Ogilvy

"Paul S Panoff" wrote in message
...
I have a fairly simple spreadsheet that I have protected columns with
formatting symbols. I want the users to only enter single digit values
into the unprotected cells and automatically skip the protected cells
containing a "," or ".". This seems to work when I use the TAB key.
However, if I press the Right Arrow or Enter key, I can end up on a cell
that is protected.
My question:
Is there a way to force the ENTER and RIGHT ARROW keys to behave as if a
TAB was pressed?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Change Key Mapping

Thank You! I will experiment with that!

Tom Ogilvy wrote:

before protecting the sheet, select the properties for the sheet and set the
enable selection property to xlUnlockedCells

you can access the properties of the worksheet in the VBE project explorer
by hitting F4 with the sheet selected to bring up the properties window

Another method is wish the sheet visible, make the control toolbox toolbar
visible and click the properties icon.

The setting for enable selection is lost when you close the workbook, so you
must set it each time the workbook is opened. You could do that in the
workbook_open event and if the user doesn't disable macros, it will be set
each time the workbook is opened.

--
Regards,
Tom Ogilvy

"Paul S Panoff" wrote in message
...
I have a fairly simple spreadsheet that I have protected columns with
formatting symbols. I want the users to only enter single digit values
into the unprotected cells and automatically skip the protected cells
containing a "," or ".". This seems to work when I use the TAB key.
However, if I press the Right Arrow or Enter key, I can end up on a cell
that is protected.
My question:
Is there a way to force the ENTER and RIGHT ARROW keys to behave as if a
TAB was pressed?


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
XML Mapping Carl Boone Excel Discussion (Misc queries) 0 September 10th 09 06:17 PM
mapping me Excel Discussion (Misc queries) 1 December 5th 08 10:47 PM
mapping omer Excel Worksheet Functions 1 January 3rd 07 12:40 PM
mapping add-ins colettey29 Excel Discussion (Misc queries) 0 June 13th 06 06:51 PM
mapping add-ins colettey29 Charts and Charting in Excel 0 June 13th 06 05:56 PM


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