Private Sub Workbook_BeforeClose(Cancel As Boolean)
' with password

ThisWorkbook.SaveAs Filename:="d:\test3.xls ", FileFormat:= _
xlNormal, Password:="abc", WriteResPassword:="abc1",
ReadOnlyRecommended:=False _
, CreateBackup:=False

'without password
ThisWorkbook.SaveAs Filename:="d:\test.xls "
End Sub


On Wed, Feb 16, 2011 at 4:05 AM, balders <baldr...@gmail.com> wrote:

> I ahve a workbook for each of my staff for coaching purposes, I need
> to save this into a Common drive so they can password protect it to
> enable only me and them to access it.  I also need to save it without
> a password into a management drive to allow my manager to access it
> without the need for a password.  Currently i do this in two separate
> operations, idally on save I would like it to just save in the two
> separate folders.  I can write basic macros but do not have the time
> to dig into vba.  Any help greatly appreciated.  thanks Balders
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>



-- 
*Regards*
* *
*Ashish Koul*
*akoul*.*blogspot*.com <http://akoul.blogspot.com/>
*akoul*.wordpress.com <http://akoul.wordpress.com/>
My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830>


P Before printing, think about the environment.

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to