Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Macro on Password

Is there a way to have a password protect on a workbook and once end user
keys in the password, the workbook status will changed to modified?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default Macro on Password

the easiest way to do this is to have the workbook always believe it has been
changed as soon as you open it. In the ThisWorkbook module, put the
following macro...

Private Sub Workbook_Open()
Application.ActiveWorkbook.Saved = False
End Sub

That will make the workbook always believe that it needs to be saved.
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"acss" wrote:

Is there a way to have a password protect on a workbook and once end user
keys in the password, the workbook status will changed to modified?

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
Password protection in macro ( Anybody can view my password in VB Sherees Excel Discussion (Misc queries) 2 January 24th 10 10:05 PM
Password protect macro via a macro mcphc Excel Programming 1 March 9th 07 04:40 PM
Macro & Password paulrm906 Excel Discussion (Misc queries) 2 March 4th 06 02:09 PM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Worksheet Functions 5 October 27th 05 09:57 AM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Programming 5 October 27th 05 09:57 AM


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