Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Saving while vba is passworded

Hello all,

I have a button to which is assigned the following code:

ActiveWorkbook.Save

Now i also need to protect my vba from user sight because
it contains passwords,so this is protected with a
password.

Now when i click the button to save i get a message
saying that this cannot be done with protected vba.

Is there some vba that could be added to the above to
allow the file to be saved but to maintain protection of
the programming?

Some passwords have been discovered when debug errors
expose the programming, and when people have been
medling, i need to stop this.

Very grateful of any help

Cheers

Joe

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Saving while vba is passworded

As far as I know what you're seeing is not normal Excel behavior. You're
not the first person to report this problem, so I know it's a real issue,
but I've never run into it and I cannot reproduce it. I know this isn't
particularly helpful, but I just wanted to explain why you might not get an
answer.

--
Jim Rech
Excel MVP

"Joe Bannister" wrote in message
...
| Hello all,
|
| I have a button to which is assigned the following code:
|
| ActiveWorkbook.Save
|
| Now i also need to protect my vba from user sight because
| it contains passwords,so this is protected with a
| password.
|
| Now when i click the button to save i get a message
| saying that this cannot be done with protected vba.
|
| Is there some vba that could be added to the above to
| allow the file to be saved but to maintain protection of
| the programming?
|
| Some passwords have been discovered when debug errors
| expose the programming, and when people have been
| medling, i need to stop this.
|
| Very grateful of any help
|
| Cheers
|
| Joe
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Saving while vba is passworded

Just curious. What's the format of your workbook?

Is it a normal workbook or saved in some previous version or other program's
format?

Joe Bannister wrote:

Hello all,

I have a button to which is assigned the following code:

ActiveWorkbook.Save

Now i also need to protect my vba from user sight because
it contains passwords,so this is protected with a
password.

Now when i click the button to save i get a message
saying that this cannot be done with protected vba.

Is there some vba that could be added to the above to
allow the file to be saved but to maintain protection of
the programming?

Some passwords have been discovered when debug errors
expose the programming, and when people have been
medling, i need to stop this.

Very grateful of any help

Cheers

Joe


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Saving while vba is passworded

It's a normal workbook.
I'm using Excel 2002 on Windows XP Pro Version 2002.

-----Original Message-----
Just curious. What's the format of your workbook?

Is it a normal workbook or saved in some previous

version or other program's
format?

Joe Bannister wrote:

Hello all,

I have a button to which is assigned the following

code:

ActiveWorkbook.Save

Now i also need to protect my vba from user sight

because
it contains passwords,so this is protected with a
password.

Now when i click the button to save i get a message
saying that this cannot be done with protected vba.

Is there some vba that could be added to the above to
allow the file to be saved but to maintain protection

of
the programming?

Some passwords have been discovered when debug errors
expose the programming, and when people have been
medling, i need to stop this.

Very grateful of any help

Cheers

Joe


--

Dave Peterson

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Saving while vba is passworded

Well now, it seems to work if i'm using and saving as
Microsoft Excel Workbook(*.xls), but does not work if
using and saving as Microsoft Excel 5.0/95 Workbook
(*.xls) or Microsoft Excel 97-2002 & 5.0/95 Workbook
(*.xls)!
Do you know the reason for this?

Cheers

Joe

-----Original Message-----
Just curious. What's the format of your workbook?

Is it a normal workbook or saved in some previous

version or other program's
format?

Joe Bannister wrote:

Hello all,

I have a button to which is assigned the following

code:

ActiveWorkbook.Save

Now i also need to protect my vba from user sight

because
it contains passwords,so this is protected with a
password.

Now when i click the button to save i get a message
saying that this cannot be done with protected vba.

Is there some vba that could be added to the above to
allow the file to be saved but to maintain protection

of
the programming?

Some passwords have been discovered when debug errors
expose the programming, and when people have been
medling, i need to stop this.

Very grateful of any help

Cheers

Joe


--

Dave Peterson

.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Saving while vba is passworded

xl97 was the first version to provide the VBE (and offer protection in the VBE).

xl95 had codesheets with no protection (IIRC). (I think hiding the codesheets
was as good as you could get.)



Joe Bannister wrote:

Well now, it seems to work if i'm using and saving as
Microsoft Excel Workbook(*.xls), but does not work if
using and saving as Microsoft Excel 5.0/95 Workbook
(*.xls) or Microsoft Excel 97-2002 & 5.0/95 Workbook
(*.xls)!
Do you know the reason for this?

Cheers

Joe

-----Original Message-----
Just curious. What's the format of your workbook?

Is it a normal workbook or saved in some previous

version or other program's
format?

Joe Bannister wrote:

Hello all,

I have a button to which is assigned the following

code:

ActiveWorkbook.Save

Now i also need to protect my vba from user sight

because
it contains passwords,so this is protected with a
password.

Now when i click the button to save i get a message
saying that this cannot be done with protected vba.

Is there some vba that could be added to the above to
allow the file to be saved but to maintain protection

of
the programming?

Some passwords have been discovered when debug errors
expose the programming, and when people have been
medling, i need to stop this.

Very grateful of any help

Cheers

Joe


--

Dave Peterson

.


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Saving while vba is passworded

I don't know how you protect your workbook, but a simple password id
definitle not enough.
There are several site on Internet were you can pick-up a Add-In which can
"recover forgotten passwords" (or break them if you are not supposed to know
them).
See www.strax.com/excel/password.html .



"Joe Bannister" schreef in bericht
...
Hello all,

I have a button to which is assigned the following code:

ActiveWorkbook.Save

Now i also need to protect my vba from user sight because
it contains passwords,so this is protected with a
password.

Now when i click the button to save i get a message
saying that this cannot be done with protected vba.

Is there some vba that could be added to the above to
allow the file to be saved but to maintain protection of
the programming?

Some passwords have been discovered when debug errors
expose the programming, and when people have been
medling, i need to stop this.

Very grateful of any help

Cheers

Joe



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
passworded access hiriearchy Resi Excel Discussion (Misc queries) 1 March 26th 09 12:06 PM
Passworded Sheets ? JacobsBabtie Excel Discussion (Misc queries) 2 May 5th 06 01:36 PM
Passworded Spreadsheet Lakebum Excel Discussion (Misc queries) 7 April 8th 06 12:36 AM
Linking to a passworded workbook PeterD Links and Linking in Excel 0 July 18th 05 12:50 AM
Passworded Macro!! sh0t2bts Excel Worksheet Functions 1 December 3rd 04 05:03 PM


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