Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protecting all sheets in a workbook

Ok, here's my little problem: starting in a few days, i'll need to le
another department see the my workbook's data through the network
since the workbook is always being updated througout the day, it'd b
nice for them to be able to keep the workbook open and it refreshe
every so often to reflect the changes made, but at the same time als
It's *extremely* important that they can't alter any data in th
workbook whatsoever. So i'm asking for advice, what should and can
do?

thanks :

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default Protecting all sheets in a workbook

Right-click the Excel LOGO near the File menu, select View code, enter this:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Cancel = True
End Sub

Woekbook is now unsavable.
If you want to allow YOU to save it, put some text in a cell which you can
test, like "OK" in cell F1, then alter the above to:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Cancel = (Sheets(1).Range("F1").Value<"OK")
End Sub

Bob Umlas
Excel MVP

"abxy " wrote in message
...
Ok, here's my little problem: starting in a few days, i'll need to let
another department see the my workbook's data through the network,
since the workbook is always being updated througout the day, it'd be
nice for them to be able to keep the workbook open and it refreshes
every so often to reflect the changes made, but at the same time also
It's *extremely* important that they can't alter any data in the
workbook whatsoever. So i'm asking for advice, what should and can I
do?

thanks :)


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protecting all sheets in a workbook

can i change that code around some how to say, if the workbook isn't i
"this" particular path, then this code for not letting you save i
applied

--
Message posted from http://www.ExcelForum.com

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
Protecting Sheets Esradekan[_2_] Excel Worksheet Functions 2 May 30th 09 11:52 PM
protecting sheets christina Excel Discussion (Misc queries) 2 May 29th 09 11:27 PM
Protecting workbook sheets Learner101b Excel Discussion (Misc queries) 3 February 3rd 08 08:25 PM
Protecting sheets within a workbook Ridge Excel Discussion (Misc queries) 1 October 3rd 07 02:44 PM
Password protecting sheets in a workbook Les[_2_] Excel Worksheet Functions 4 February 24th 07 06:38 PM


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