PC Review


Reply
Thread Tools Rate Thread

How do i password protect my VB Code from users

 
 
Bruce
Guest
Posts: n/a
 
      28th May 2009
I would like to do a couple of things to hide / protect information in my
excel file (2k3).

1. How can I password protect my VBA so others cannot see or edit it?
2. I Have a worksheet with a command button that starts a macro but I want
to password protect the sheet. I have unlocked the cells that get the update,
but when I run the macro with protection on it says "You cannto use a macro
on a protected sheet". How can I get around this?

Bruce
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      28th May 2009
1. Launch VBE using Alt+F11. Check Tools> VBA Project Properties> Protection>
Check Lock and assign password

2. I am not sure I understood your question...Using code you can unprotect
the sheet and then before End Sub you can protect the sheet again...Does that
help???

If this post helps click Yes
---------------
Jacob Skaria


"Bruce" wrote:

> I would like to do a couple of things to hide / protect information in my
> excel file (2k3).
>
> 1. How can I password protect my VBA so others cannot see or edit it?
> 2. I Have a worksheet with a command button that starts a macro but I want
> to password protect the sheet. I have unlocked the cells that get the update,
> but when I run the macro with protection on it says "You cannto use a macro
> on a protected sheet". How can I get around this?
>
> Bruce

 
Reply With Quote
 
Bruce
Guest
Posts: n/a
 
      28th May 2009
Thanks Jacob, have 1. working now and understand your point on 2. and will
work on it.

Bruice



"Jacob Skaria" wrote:

> 1. Launch VBE using Alt+F11. Check Tools> VBA Project Properties> Protection>
> Check Lock and assign password
>
> 2. I am not sure I understood your question...Using code you can unprotect
> the sheet and then before End Sub you can protect the sheet again...Does that
> help???
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Bruce" wrote:
>
> > I would like to do a couple of things to hide / protect information in my
> > excel file (2k3).
> >
> > 1. How can I password protect my VBA so others cannot see or edit it?
> > 2. I Have a worksheet with a command button that starts a macro but I want
> > to password protect the sheet. I have unlocked the cells that get the update,
> > but when I run the macro with protection on it says "You cannto use a macro
> > on a protected sheet". How can I get around this?
> >
> > Bruce

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to allow users to edit changes afetr password protect of c mamta raul Microsoft Excel New Users 1 19th Aug 2009 03:08 PM
Password protect users ariana Windows Vista Networking 1 27th Jul 2007 05:38 PM
Can I password-protect a spreadsheet for different users? =?Utf-8?B?Q2FuZHk=?= Microsoft Excel Programming 1 25th Oct 2005 10:59 PM
Can I password protect Oulook from other users of my PC =?Utf-8?B?Um9iIFN0cmluZ2Vy?= Microsoft Outlook Discussion 1 24th Feb 2005 03:40 PM
password protect vba code greg Microsoft Excel Misc 3 8th Dec 2004 04:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.