Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jdy jdy is offline
external usenet poster
 
Posts: 6
Default Format Cells

I have an excel file that I use as an quote form. I would
like to be able to disable all cells that are not used in
the form so that when the user clicks on these cells, the
cells are not highlighted. Is there a way to do this?
Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
JK JK is offline
external usenet poster
 
Posts: 78
Default Format Cells

It sounds like you simply need to lock the unused cells and protect the
sheet. This will allow the user to tab through the form and select only the
cells you want entered.

Jim Kobzeff
"jdy" wrote in message
...
I have an excel file that I use as an quote form. I would
like to be able to disable all cells that are not used in
the form so that when the user clicks on these cells, the
cells are not highlighted. Is there a way to do this?
Thanks for the help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Format Cells

by default, the locked setting for all cells is locked.

Select the cells you want editable, and then do format=Cells go to the
protection tab and uncheck locked.

Now go to tools=protection=Protect worksheet and protect the worksheet.

now in your workbook_open event put in code like

Thisworkbook.worksheets("Sheet1").enableSelection = xlUnlockedCells

This setting is non-persistent, so if you close and open the workbook, you
need to reset it - thus why it is put in the workbook_open event.

If the user disables macros, then this setting won't be made, but the cells
will be selectable but not editable since the worksheet is protected.

Recognize that any such password protection in Excel is easily defeated.

--
Regards,
Tom Ogilvy


"jdy" wrote in message
...
I have an excel file that I use as an quote form. I would
like to be able to disable all cells that are not used in
the form so that when the user clicks on these cells, the
cells are not highlighted. Is there a way to do this?
Thanks for the 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
Excel 2007 format cells to date format Stefan Excel Discussion (Misc queries) 0 June 1st 10 09:06 PM
How do I format cells to show date in Australian not US format? Kevin B[_2_] Excel Worksheet Functions 1 May 12th 08 04:17 AM
how do i format a cell based on format of a range of cells? Chris Hardick Excel Discussion (Misc queries) 2 April 3rd 06 08:54 AM
want format cells alignment not format cells font style Jeannie Bean Excel Discussion (Misc queries) 2 February 10th 06 09:31 AM
Cells won't convert to number format, even after format/cells/num. scottr Excel Discussion (Misc queries) 5 April 12th 05 11:02 PM


All times are GMT +1. The time now is 10:17 PM.

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"