Is there a way to make the VBA code invisible to end user?

  • Thread starter Michael Downey - CarBiz, Inc.
  • Start date
M

Michael Downey - CarBiz, Inc.

I have an excel file in 2003 and I don't want the users to see my
username/password code which is in VBA. It is firing off to a remote
sql server and i don't want them to modify or even see that code.

Is there a way to make them not see that?

thanks,
Mike
 
M

Michael Downey - CarBiz, Inc.

I have an excel file in 2003 and I don't want the users to see my
username/password code which is in VBA.  It is firing off to a remote
sql server and i don't want them to modify or even see that code.

Is there a way to make them not see that?

thanks,
Mike


From another poster:


Nevermind i found my own answer.

Inside the VBE
Select your workbook's project
tools|VBAProject Properties|Protection tab

Lock it for viewing and give it a memorable password.


Be aware that this password isn't going to stop the really dedicated--
but it
will keep most people out.
 
G

G-2008

Michael

In the left pane, right-click on your project and select <Projectname>
Properties. The Protection tab on the properties window should be what
you're looking for. Users will still be able to pull up the VB editor window
but won't be able to access anything.

- Glen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top