LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Password Protecting an Attachment sent via VBA

Thanks Casey

Unfortunately its still unprotected


"Casey" wrote in
message ...

John,

Try something like:

Dim AnySheet As Worksheet

For Each AnySheet In ActiveWorkbook.Worksheets
ActiveWorkbook.Worksheets(AnySheet.Name) _
.Protect Password:="mypassword"
Next


HTH


--
Casey


------------------------------------------------------------------------
Casey's Profile:
http://www.excelforum.com/member.php...fo&userid=4545
View this thread: http://www.excelforum.com/showthread...hreadid=562192



 
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 Protecting Cells Kevin M[_3_] Excel Discussion (Misc queries) 3 January 26th 09 08:05 AM
Password Protecting a particular Sub pianoman[_14_] Excel Programming 3 May 23rd 06 09:06 AM
Password Protecting Nick Excel Discussion (Misc queries) 6 June 30th 05 12:06 PM
Sheet Protecting password Nick Excel Discussion (Misc queries) 1 June 30th 05 12:43 AM
Protecting Sheet with Password halem2[_20_] Excel Programming 3 September 17th 04 01:58 AM


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