Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect columns (prevent addition or deletion)


I have a spreadsheet used in conjunction with an Access database.
I would like to prevent users from adding or deleting columns in any of
the worksheets, but at the same time, allow them to make as many changes
as they want to the cells of the columns.
Is this possible ?


--
qwertyjjj
------------------------------------------------------------------------
qwertyjjj's Profile: http://www.excelforum.com/member.php...o&userid=37489
View this thread: http://www.excelforum.com/showthread...hreadid=571441

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default protect columns (prevent addition or deletion)

the default for a protected sheet is not to allow column or row deleting

You could unlock all the cells and protect the sheet. xl2002 and later
offer several options associated with protecting the sheet that may make this
more tenable.

--
Regards,
Tom Ogilvy


"qwertyjjj" wrote:


I have a spreadsheet used in conjunction with an Access database.
I would like to prevent users from adding or deleting columns in any of
the worksheets, but at the same time, allow them to make as many changes
as they want to the cells of the columns.
Is this possible ?


--
qwertyjjj
------------------------------------------------------------------------
qwertyjjj's Profile: http://www.excelforum.com/member.php...o&userid=37489
View this thread: http://www.excelforum.com/showthread...hreadid=571441


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect columns (prevent addition or deletion)


It's more that the top row of each worksheet contains column names,
which I want to protect as they match up directly with my database
column names in Access.
I can stop column deletion/addition by protectin the worksheet but is
it possible to lock 1 row (the top row only)?


--
qwertyjjj
------------------------------------------------------------------------
qwertyjjj's Profile: http://www.excelforum.com/member.php...o&userid=37489
View this thread: http://www.excelforum.com/showthread...hreadid=571441

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default protect columns (prevent addition or deletion)

If you set .Locked=False for all the data cells that the user can change,
whilst the header cells are .Locked=True, then protect the sheet, does
achieve your aim ?

NickHK

"qwertyjjj" wrote
in message ...

It's more that the top row of each worksheet contains column names,
which I want to protect as they match up directly with my database
column names in Access.
I can stop column deletion/addition by protectin the worksheet but is
it possible to lock 1 row (the top row only)?


--
qwertyjjj
------------------------------------------------------------------------
qwertyjjj's Profile:

http://www.excelforum.com/member.php...o&userid=37489
View this thread: http://www.excelforum.com/showthread...hreadid=571441



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
Prevent sheet deletion G and (ajk) Excel Discussion (Misc queries) 2 March 9th 07 09:18 AM
Prevent deletion Comments Sige Excel Programming 1 September 15th 05 03:52 PM
Prevent Sheet Deletion T-®ex[_60_] Excel Programming 7 September 7th 05 05:17 AM
prevent file deletion Lizeth Excel Discussion (Misc queries) 1 February 23rd 05 09:47 PM
Prevent formula from deletion? crapit Excel Programming 0 July 8th 04 07:14 PM


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