Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Protecting excel sheet for data input

Dear All:

I am using Excel for inputting data as part of a larger application. Each
worksheet roughly corresponds to a table for user input. Each table has a
predefined number of columns, the rest of the columns in the worksheet are
not being used and can be hidden from the user. My concern is about the data
area of the worksheet, which I am not protecting in any way because I want
the user to be able to modify the data at will. During this process, the
user may, for example, accidentally delete a useful table column. So I am
looking for a way to at least prevent column deletion while allowing data
input/editing functions. Also, the data area of the worksheet contains
defined names. How can I protect these from deletion as well?

TIA for all suggestions,

Nikolas

ps. I will be using VBA to implement protection of the data table


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Protecting excel sheet for data input

A simple password protection applied to all sheets might be enough?

Sub protectsheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True,
Password:="Password"
Next
End Sub

Sub unprotectsheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Unprotect ("Password")
Next
End Sub

--
Cheers
Nigel



"rdrnws" wrote in message
...
Dear All:

I am using Excel for inputting data as part of a larger application. Each
worksheet roughly corresponds to a table for user input. Each table has a
predefined number of columns, the rest of the columns in the worksheet are
not being used and can be hidden from the user. My concern is about the
data
area of the worksheet, which I am not protecting in any way because I want
the user to be able to modify the data at will. During this process, the
user may, for example, accidentally delete a useful table column. So I am
looking for a way to at least prevent column deletion while allowing data
input/editing functions. Also, the data area of the worksheet contains
defined names. How can I protect these from deletion as well?

TIA for all suggestions,

Nikolas

ps. I will be using VBA to implement protection of the data table




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
Named Ranges Epinn Excel Worksheet Functions 23 October 16th 06 07:27 AM
Excel (Office 2007 B2TR) -- Password Protecting A Sheet -- Character Limit ? Office2007B2TR_Tester_91311 Excel Discussion (Misc queries) 2 October 12th 06 07:08 PM
In Excel, how do you make one whole sheet equal to another. ryan Excel Discussion (Misc queries) 2 August 31st 05 07:03 PM
Protecting sheet disables import of extetrnal data in Excel 2003 MNord Excel Discussion (Misc queries) 0 August 31st 05 04:34 PM
Hyperlink to specific sheet in Excel Web File jd17 Links and Linking in Excel 0 December 8th 04 09:03 PM


All times are GMT +1. The time now is 09:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"