Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Locking VBA code via Project properties but cannot save the workbook over itself

Hi All, is there a way you can lock your VBA code via the VBA project
properties but also have the user save the workbook without being promted to
unlock the VBA project?? I have locked my code but connot save the workbook
without unlocking my VBA code.

Thanks
SK


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Locking VBA code via Project properties but cannot save the workbookover itself

This isn't usual behavior.

You should be able to save your workbook with the project protected with no
prompts.

Any chance you have a misbehaving macro that causes an error message to appear?

Shane wrote:

Hi All, is there a way you can lock your VBA code via the VBA project
properties but also have the user save the workbook without being promted to
unlock the VBA project?? I have locked my code but connot save the workbook
without unlocking my VBA code.

Thanks
SK


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Locking VBA code via Project properties but cannot save the workbook over itself

Hi

It is just a simple macro ..

Im saving as file type - Excel 97 - Excel 2003 & 5.0 / 95 format. When the
file reaches the stage where its saving in 5/95 format it displays a message
that it cannot save the workbook with the VBA project being protected. Very
weird indeed. I am running Excel 2003. This is consistent behaviour with all
my files and other users are reporting the same issue.


"Dave Peterson" wrote in message
...
This isn't usual behavior.

You should be able to save your workbook with the project protected with

no
prompts.

Any chance you have a misbehaving macro that causes an error message to

appear?

Shane wrote:

Hi All, is there a way you can lock your VBA code via the VBA project
properties but also have the user save the workbook without being

promted to
unlock the VBA project?? I have locked my code but connot save the

workbook
without unlocking my VBA code.

Thanks
SK


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Locking VBA code via Project properties but cannot save the workbook over itself

From memory you can't save back down to 95.

As there was a lot of new coding stuff added in 97 that isn't compaitable
with 95.

This would be your problem. Try "save as" a Offcice 95 version and see the
message



"Shane" wrote in message
...
Hi

It is just a simple macro ..

Im saving as file type - Excel 97 - Excel 2003 & 5.0 / 95 format. When the
file reaches the stage where its saving in 5/95 format it displays a

message
that it cannot save the workbook with the VBA project being protected.

Very
weird indeed. I am running Excel 2003. This is consistent behaviour with

all
my files and other users are reporting the same issue.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Locking VBA code via Project properties but cannot save theworkbook over itself

Ahhh. 5.0/95 didn't have protected projects. And excel is smart enough to stop
users from simply saving in xl95 to see your top secret code.

Do you really need xl95 format?

That's pretty darn old. I'm kind of surprised that nothing else broke!



Shane wrote:

Hi

It is just a simple macro ..

Im saving as file type - Excel 97 - Excel 2003 & 5.0 / 95 format. When the
file reaches the stage where its saving in 5/95 format it displays a message
that it cannot save the workbook with the VBA project being protected. Very
weird indeed. I am running Excel 2003. This is consistent behaviour with all
my files and other users are reporting the same issue.

"Dave Peterson" wrote in message
...
This isn't usual behavior.

You should be able to save your workbook with the project protected with

no
prompts.

Any chance you have a misbehaving macro that causes an error message to

appear?

Shane wrote:

Hi All, is there a way you can lock your VBA code via the VBA project
properties but also have the user save the workbook without being

promted to
unlock the VBA project?? I have locked my code but connot save the

workbook
without unlocking my VBA code.

Thanks
SK


--

Dave Peterson


--

Dave Peterson



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
can not save if this code is in the workbook jlclyde Excel Discussion (Misc queries) 0 December 17th 08 10:21 PM
Docking Project Explorer, Properties window and Code window in VBE jayray Setting up and Configuration of Excel 2 March 27th 07 04:42 PM
Workbook with no properties attaches itself to my VBA project [email protected] Excel Discussion (Misc queries) 4 January 16th 07 06:06 PM
Error in VBA code to save workbook djchristie Excel Programming 0 April 29th 04 03:26 PM
Locking project jacob[_3_] Excel Programming 1 October 2nd 03 01:06 PM


All times are GMT +1. The time now is 07:33 PM.

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"