Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question on worksheet protection and breaking macros

Hello,

I actually posted these questions in another forum, but I thought i
might help to post them here, too. I am trying to do two things I nee
assistance with:

1). I am trying to incorporate a password in my macro using workshee
protection. I am familiar with the code:

ActiveSheet.Protect

but I don't know how to incorporate the password into my code t
protect and unprotect (as with Workbooks.Open and password:= ****, fo
instance). Does anyone know if this is possible to do?

and

2). Does anyone know if there is a way to automatically close
workbook (unsaved) that a macro is acting on should the user try t
break the macro in runtime (as in Ctrl+Break)?

Any advice would be much appreciated.

Thanks,

-Pet

--
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
Worksheet Protection Question Pat Excel Discussion (Misc queries) 1 February 4th 09 11:14 PM
Worksheet protection question Dominic Excel Discussion (Misc queries) 3 August 17th 07 07:46 PM
Cell/worksheet protection with macros enabled Zilla[_2_] Excel Worksheet Functions 7 March 6th 07 01:07 AM
A Worksheet Protection Question PA New Users to Excel 1 December 8th 06 09:44 AM
Excel97 - Worksheet Protection Question Russell Plummer Excel Programming 2 February 18th 04 04:17 PM


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