Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Locking documents in Excel after a template has been created.

I have created a template to use at my office that I need to share with other
employees to use. The template is locked with only necessary cells opened
for data entry. The issue I'm having is these templates need to be locked
completely once the data has been entered so they cannot be altered. I can't
lock the worksheet completely without first unlocking the template. Is there
was way to share a locked template that gives others the ability to lock the
data they've entered but not have access to altering any other aspects of the
original template?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Locking documents in Excel after a template has been created.

How is the template retrieved (accessed) by the other users?

Is the template on a shared drive (LAN - network)?

Is the template *copy* renamed and saved to a particular file after data
entry?
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Borneval" wrote in message
...
I have created a template to use at my office that I need to share with
other
employees to use. The template is locked with only necessary cells opened
for data entry. The issue I'm having is these templates need to be locked
completely once the data has been entered so they cannot be altered. I
can't
lock the worksheet completely without first unlocking the template. Is
there
was way to share a locked template that gives others the ability to lock the
data they've entered but not have access to altering any other aspects of
the
original template?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Locking documents in Excel after a template has been created.

If it is a true Template(*.XLT), it will not open to be altered.

Only a workbook based on that Template will open.

I would use event code to lock the cells as data is entered in the worksheet.

That event code would be placed into the worksheet in the *.XLT and would lock
the cells in the opened workbook.

To add code to the Template(*.XLT) browse to that file using Windows Explorer.

Right-click to open, add the code then Save

Now FileNewTemplate.

Start adding data to the unlocked cells which will become locked when ENTER key
is hit.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Const sINPUTS As String = "A1,B2,C3,D4,E5,F6"
On Error GoTo enditall
Application.EnableEvents = False
ActiveSheet.Unprotect Password:="justme"
If Not Intersect(Target, Me.Range(sINPUTS)) Is Nothing Then
If Target.Value < "" Then
Target.Locked = True
End If
End If
enditall:
Application.EnableEvents = True
ActiveSheet.Protect Password:="justme"
End Sub


Gord Dibben MS Excel MVP

On Wed, 9 Jul 2008 07:42:01 -0700, Borneval
wrote:

I have created a template to use at my office that I need to share with other
employees to use. The template is locked with only necessary cells opened
for data entry. The issue I'm having is these templates need to be locked
completely once the data has been entered so they cannot be altered. I can't
lock the worksheet completely without first unlocking the template. Is there
was way to share a locked template that gives others the ability to lock the
data they've entered but not have access to altering any other aspects of the
original template?


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 documents keep locking Kevin Excel Discussion (Misc queries) 8 April 9th 08 11:33 AM
How do I distribute a template created with Template Wizard ? Sofia Excel Discussion (Misc queries) 0 June 20th 07 04:51 PM
link cells to documents that aren't created yet jrm Excel Discussion (Misc queries) 9 July 6th 06 03:01 AM
locking excel documents in a folder hoyt New Users to Excel 1 June 30th 06 05:49 PM
How do I insert new fields in Excel DB created using template wiza SHARIEEH Excel Discussion (Misc queries) 0 May 3rd 06 06:55 PM


All times are GMT +1. The time now is 11:01 AM.

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"