Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Irvine S Russell
 
Posts: n/a
Default Preventing [Read Only]

Is it possible to stop people opening a workbook in read only format?

I have a document which when used, prints individually numbered labels, and
saves the information in an archive. Instances have occurred where reference
has been made to a certain label number, bu it relates to different
information than what he archive says. All because somebocy produced the
label in read only mode, therefore not saving the information in the archive.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Saved from a previous post.

How about closing the workbook if it's opened readonly--and this'll only work if
macros are enabled!

Option Explicit
Sub auto_open()

With ThisWorkbook
If .ReadOnly = True Then
MsgBox "not available in readonly mode!"
.Close savechanges:=False
End If
End With

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Irvine S Russell wrote:

Is it possible to stop people opening a workbook in read only format?

I have a document which when used, prints individually numbered labels, and
saves the information in an archive. Instances have occurred where reference
has been made to a certain label number, bu it relates to different
information than what he archive says. All because somebocy produced the
label in read only mode, therefore not saving the information in the archive.


--

Dave Peterson
  #3   Report Post  
Irvine S Russell
 
Posts: n/a
Default

Thank You Dave, you really are a guru! My colleagues and I have been trying
to work that out for over a week.

"Dave Peterson" wrote:

Saved from a previous post.

How about closing the workbook if it's opened readonly--and this'll only work if
macros are enabled!

Option Explicit
Sub auto_open()

With ThisWorkbook
If .ReadOnly = True Then
MsgBox "not available in readonly mode!"
.Close savechanges:=False
End If
End With

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Irvine S Russell wrote:

Is it possible to stop people opening a workbook in read only format?

I have a document which when used, prints individually numbered labels, and
saves the information in an archive. Instances have occurred where reference
has been made to a certain label number, bu it relates to different
information than what he archive says. All because somebocy produced the
label in read only mode, therefore not saving the information in the archive.


--

Dave Peterson

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
Preventing users from saving a spreadsheet MDH Excel Discussion (Misc queries) 4 July 6th 05 09:46 PM
Preventing Duplicate Cells BenBlair Excel Discussion (Misc queries) 2 May 19th 05 06:08 PM
Preventing Viewing of certain columns by recipient markd Excel Discussion (Misc queries) 1 February 9th 05 07:08 PM
Preventing Duplicate Entries within a column Bruce Excel Discussion (Misc queries) 3 January 29th 05 12:33 AM
Preventing Duplicate Entries in rows AJPendragon Excel Worksheet Functions 1 December 6th 04 12:45 PM


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