LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Saving or not a spreadsheet

Patrick,

Sorry If I didn't make myself 100% clear in the first place. I'll try better
next time.
Please let me say thank you for all you help.

"Thank you for all your help"

That is absolutly wonderful.

Dean

"Patrick Molloy" wrote:

its what you asked for. Anyway, select the event's first line of code and F9
to set a break point
hit save, the when it breaks contimnue the code at the end sub line

a better way would be to use a developer's flag...
in a new module:

Option Explicit
Public DeveloperFlag As Boolean
Private Sub set_DeveloperFlag()
DeveloperFlag = True
End Sub

now wrap the event code like this...


If DeveloperFlag = False Then
Cancel = True
'etc
End If



"Dean" wrote:

Patrick,

Thanks for that however I now have another problem, how do I save it! With
the code in I can't save the spreadsheet.

Dean

"Patrick Molloy" wrote:

in the object ThisWorkbook's BeforeSave event
add these two lines
Cancel = True
ActiveWorkbook.Saved = True

if yuo want to be really mean, also add
ActiveWorkbook.Close False

"Dean" wrote:

I would like for users to be able to open my spreadsheets, use them but not
be able to save them, either using the "Save" or "Save as" commands.
Is it possible and if so how?

Thanks in advance.....

Dean



 
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
Saving spreadsheet LilOlLady Excel Discussion (Misc queries) 1 November 10th 08 01:14 PM
saving a spreadsheet in a .wk1 format? Ryan Excel Discussion (Misc queries) 1 May 13th 08 01:23 PM
Saving spreadsheet Beginner Excel User Excel Worksheet Functions 2 March 21st 06 08:45 PM
saving options along with spreadsheet woody Excel Worksheet Functions 1 April 1st 05 07:29 PM
Saving a spreadsheet without any VBA David Ralph Excel Programming 1 January 15th 04 02:08 PM


All times are GMT +1. The time now is 05:53 AM.

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"