Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Save a file with Protected Macro

I have developed a file with a macro which is protected by a password. A
"Save" button with the assigned macro calls the procedure in the macro and
when I am trying to save a file the following message appears

"You cannot save this file format when the VBA Project is protected

You may unprotect the VBA Project by......"

What do you suggest I do to save a file with a protected macro? The macro
must be protected, it is very important for me not to allow access to the
macro in totallity.

I am using certain cells' information to rename the file different from the
master

My code looks like this

ActiveWorkbook.SaveAs "C:\Anchor\PersLine Quotes\" &
Range("FileName").Value

Tobie


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Save a file with Protected Macro

Are you trying to save as a normal workbook?

I'm betting you're saving as a format that didn't support protected projects
(xl95???).



Tobie Hanekom wrote:

I have developed a file with a macro which is protected by a password. A
"Save" button with the assigned macro calls the procedure in the macro and
when I am trying to save a file the following message appears

"You cannot save this file format when the VBA Project is protected

You may unprotect the VBA Project by......"

What do you suggest I do to save a file with a protected macro? The macro
must be protected, it is very important for me not to allow access to the
macro in totallity.

I am using certain cells' information to rename the file different from the
master

My code looks like this

ActiveWorkbook.SaveAs "C:\Anchor\PersLine Quotes\" &
Range("FileName").Value

Tobie


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Save a file with Protected Macro


Dave

Thank you for your response

I am using Excel 2000 Prof

The file was saved in Microsoft 97-2000 & 5.0/95 Workbook

I have changed it to Microsoft Excel Workbook format and it worked. I am
going to test this function to ensure it keeps on working like it
should.

Thank you for your assistance

Tobie


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
MACRO inside PROTECTED FILE - Please help ivo Excel Discussion (Misc queries) 9 January 5th 08 07:47 PM
Save as the Macro Protected File Muk Excel Discussion (Misc queries) 3 August 23rd 07 12:54 PM
Save editable version of Protected file kc Excel Discussion (Misc queries) 0 February 10th 06 01:45 PM
a protected cell w/formula only updates only on file save? snap Excel Discussion (Misc queries) 2 May 18th 05 12:35 PM
Save protected file into unprotected file without password Paul Excel Programming 3 August 2nd 03 05:17 PM


All times are GMT +1. The time now is 01:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"