LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Preventing Users From Saving An Excel Workbook


Hi All,

I`m looking for code to prevent a user from saving an excel workbook, i
barely remember playing with code at the beginning of this year in class
that displayed a message saying "Sorry, this workbook cannot be saved"
if the user attempted to save the file.

I`m working on a college project and have a very simple piece of code
that handles "registration". So if a user presses the button named
"register" they are taken to a form to insert the registration code. I
managed to get the code to enable and disable the Register button if
the code entered is correct, store it in a sheet and check it on close
and startup of the workbook.

Now the fun part, if the registration number aint been entered, or is
invalid, then the user isn't allowed to save anything they enter,
muhahahaha.

If i rememebr correctly, it's very simple to do, something to do with
the message boxes that displays information, OK/CANCEL, etc. but i
can't for the life of me rememebr the code.

I`m gonna dig out my old notes anyway. I`d be gratefull for any
assistance :)


~LocVez


--
LocVez
------------------------------------------------------------------------
LocVez's Profile: http://www.excelforum.com/member.php...o&userid=24021
View this thread: http://www.excelforum.com/showthread...hreadid=376379

 
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 changing macros JS101 Excel Discussion (Misc queries) 2 February 9th 09 11:54 PM
Preventing users from unsharing a workbook Cillian Excel Discussion (Misc queries) 0 December 1st 05 05:35 PM
Preventing other users saving another version of protected workboo Laura Cook Excel Discussion (Misc queries) 1 August 5th 05 06:53 PM
Preventing users from saving a spreadsheet MDH Excel Discussion (Misc queries) 4 July 6th 05 09:46 PM
Excel end user reports and preventing changes to users excel settings? George[_20_] Excel Programming 1 April 24th 04 08:02 PM


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