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 name the file

My code looks like this

        ActiveWorkbook.SaveAs "C:\Anchor\PersLine Quotes\" &


insure (3)
1/19/2004 12:22:13 PM
excel.misc 78881 articles. 5 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 49

I'm guessing that you are trying to save the file in Excel 95 format.  At
least I get the same error message as you're reporting when I manually try
to save a protected VB project in Excel 95 format.  This isn't permitted
since Excel 95 does not support protect projects.

Jim Rech
Excel MVP

jrrech (1933)
1/19/2004 2:11:01 PM

Similar Artilces:

Test file needed quickly
Does anyone know where I can get a very large testt excel file that has a running macro? What I need to do is to run several apps that will "drain" most of my resources. I need to test another app in how it will handle low resources. I was thinking someone might have a test file just for this reason. A large spreadsheet that has a macro doing some calculations, at the same time while other apps are running. Thanks ahead for any help or suggestions. You realize if you fill a cell and then copy it to the rest of the sheet, it get really big, really fast? Dave wrote: > Doe...

Code Bloat/Growing Excel files?

FileNotFound returned by Bitmap::Save() when saving to stream
I have a little chunk of code which is supposed to take a bitmap image and save its PNG encoding into a block of memory. The problem is, I keep getting a FileNotFound error back from Save(). If anyone has any ideas, I'd love to hear them. Here's the code (more or less) in question; there really shouldn't be much to it, I would have thought: /* Allocate an IStream object to write the data into a global memory block. We indicate that the handle to the underlying data will be freed when the stream object is released. */ VERIFY(S_OK == ::CreateStreamOnHGlobal(nil, True, static_c...

Handling of savings accounts and 401k accounts in the budget
I noticed that Money treats money that I contribute to a 401k account or transfer to a savings account as an expense. Basically, the more I contribute, the worse my budget looks. Is there a way to prevent this from happening? Right now, I exclude transfers to my savings account from the budget and it solves the problem, however, I shouldn't have to manually do this each time. For 401k contributions, I cannot find a way to do this. Why does it show up as "an expense" (what Category???) instead of something like Transfer Out of Budget Accounts? The 401k cash account sh...

Unable to save password in Outlook 2003
I cannot seem to save my "network password" for Outlook 2003. I tried everything I can think of. I tried editing the registry. I use XP. I try going into Control Panel, go to mail and go thru the process there and....nothing worked there. I uninstalled Office the reinstalled it.....nothing! I even went as far as unistalling my internet software, still...nothing! Someone told me that XP will not save passwords. My Outlook express works fine. Someone HELP! I also had this issue in Outlook 2003, but also in indows Live Messenger and Internet Explorer 7. I spend hour...

what encoding does path) use to save the xml document if there is no <?xml... in the front of the xml document?
what encoding does path) use to save the xml document if there is no <?xml... in the front of the xml document? Daniel wrote: > what encoding does path) use to save the > xml document if there is no <?xml... in the front of the xml document? UTF-8 is the default encoding. -- Oleg Tkachenko [XML MVP, MCPD] | http://www.XmlLab.Net | http://www.XLinq.Net utf8 i suppose would be default Vinu Baby "Daniel" <> wrote in message news:e8#...

money file extraction: virus or worm
hi, i opened MS Money 2002 last night, and instead of starting the program, a screen opened in MS-DOS, and it started extracting a bunch of files. then that screen closed. now the program will not work. is there a worm or virus targeting people's MOney files? travis johnson lafayette, oregon In, travis johnson wrote: >hi, i opened MS Money 2002 last night, and instead of >starting the program, a screen opened in MS-DOS, and it >started extracting a bunch of files. > >then that screen closed. > >now the program will not work. > >i...

Save and save as
Hi, I am looking for some help with a macro, I need to disable anyone from saving a file or save as and also disable the prompt if the close button is pressed you get an option to save the file then, I need to disable all of these, also have a pop up box to warn that save as been disables when a user tries to save the file fro save and save as. Can anyone help me with this. I am using word 2003 Regards Mark Once you give someone access to a document, you have ceded all control over it. You can however stop them from overwriting the original file by making the doc...

Saving Images
When I right click to save an image in an email, it will only save as a .bmp. I need to use it as a .jpeg or a .gif. How can I fix this? In, Angi <> typed: > When I right click to save an image in an email, it will only save as > a .bmp. I need to use it as a .jpeg or a .gif. How can I fix this? Clear your internet explorer temp file cache.....go to control panel, internet options, and choose 'delete files' "Angi" <> wrote in message...

tab textbox by a macro
I have some textbox in a user form... I start on textbox1 and then once it is filled in a click commandbuttom1.. This click will populate some data then I then would like the cursor to move to textbox2... How do I do it with a macro and not expecting user to hit tab or enter? Hi alberto, At the end of the code run by CommandButton1 insert the following. Me.TextBox2.SetFocus -- Regards, OssieMac "Alberto Ast" wrote: > I have some textbox in a user form... > I start on textbox1 and then once it is filled in a click commandbuttom1.. > This...

Accessing Excel files over network
Hi Guys, First time here, so go easy on me. Scenario: Basic Windows 2000 Server based network with about 20 work stations connections. Server is a DC and workstations are all running Windows XP Pro. Workstations are also running Office XP. Users have deposited common files in a folder on the server. Because of control measures, these excel folders and files need to have permissions defined for either full control of read only access for certain members of the dept. Eg would be Folder Full Control Read-only Folder A Employee 1 Employee 10 ...

"Unattainable" savings goals
I've learned to mostly ignore it, but it drives me batty. I have a particular loan with a goal to pay it off by 7/4/04. The loan balance is 14,000. I have marked a savings account to be "used for budgeted savings goals." I deposit $1300 per month into the account which has a balance currently of $13000. Money 2K4 says that I cannot reach my savings goal. What can I do to help fix this? Any feedback would be appreciated! ...

Saving default tabs
I can't seem to get a change in the default tab setting to save. When I reopen publisher the tab setting reverts to .5 which was original default. I'm I the only person who is having this problem? I'm using the 2003 verson but had the same problem with 2000. Why not take the default page, set the tabs you want and save it as a template with a file name of, "My Very Special Tabs Settings for Future" (jerking your chain a bit<G>) Then when you want to create what you want, use your created template file and when your pub file is what you want, do a Sa...

why I can't declaring a CArray object in a separate header file?
Hello I have no problem declaring a CArray variable inside a class definition but as I have a separate file that I place all my typedefs inside it, I have tried to define a struct that has a CArray member but compiler says: Error 1 error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h 272 this was my code inside TypeDefs.H typedef struct tag_compliance_info { LONG lModuleCode; LONG lModuleVersion; CString sModuleName; CArray<POINT> aCompliance; } STRUCT_COM...

Save to unProtect a Document?
Our company has word documents that we use as templates on a fileserver. How could I protect the documents so that when they open them, they dont make changes to the server version, but save their OWN version and do what they want? First of all, make use of true *template* files (with the *.dot or *.dotx extension). Also, assign the template files the read-ony attribute. -- Stefan Blom Microsoft Word MVP "Chris" <> wrote in message > Our company has word docum...

PST file import to windows mail
I have chage my PC and I cannot import the PST outlook file in to my new windows Mail so far A error message appaer when I try to import a outlook message. Is someone have an idea regarding this issue Thanks Philippe You need outlook installed and configured on the Vista PC before you can import There is a workaround, assuming the old pc with outlook on is still available. You export your mail to outlook express, then copy the outlook express msg store to the Vista PC, then Mail can import it. Or you download the Office trial, with outlook, connect your pst as default to outlook, ...

Exchange 2007 And Daylight Savings Time Update
Is there a patch I need for Day light savings time and Exchange 2007? Thanks! No CDO patch required (no equivalent of KB 926666). However, the Windows Server 2003 OS will required KB 931836 time zone update and Calendar-items in 2007-hosted mailboxes created using old DST 2006 rules will need to be rebased. -- Bharat Suneja MVP - Exchange NEW blog location: ---------------------------------------------- "D303M" <> wrote in message > I...

Macro for Sub totaling multiple sheets
I'm having a problem with a sub total macro. I'm in charge of credit and risk management for a company, and we have about 40 sales agents. Our trial balance needs to be dumped from our system into excel, then broken by sales agent. The problem is each sales agent's aging is not equal, as far as the rows go, I cant seem to get a Marco to work properly. I can make a macro say for the first tab, which might have 50 rows of data, but then the second tab may have 200. The macro was only recorded for 50 rows. How can I do a sub total for each sheet, and have it know to proces...

Save csv format to dbf format
I have a .csv file with 13 columns of data opened in excel. I make a few changes to a field and then want to save to .dbf format. After saving as .dbf when I open the file only column 1 data is present. Any insights into where the rest of the data goes? Why does the data disappear? Thanks, Mike -- mdelasaux ------------------------------------------------------------------------ mdelasaux's Profile: View this thread: Try using Notepad and open your .dbf...

when I save an email, where does it save to?
Hi all, I have several emails that I wanted to reply, and I did click "reply" and then wrote something, but I did not have time to finish... then I click on "save", and in the evening, I closed the outlook because I slept... now I reopen the outlook in the morning, and I want to find my saved unfinished replies that I was writing... But where to find them? I have a "draft" folder, but those saved emails do not seem to be in this folder... wherelse could they go? ---------------------------------------------- This is annoying... is there a way to automat...

Daylight Savings Time #2
In regards to DST or better yet XDST, in my windows 2003 domain environment I have the servers and workstations syncing their clock with one of my DCs. The statement has been presented here that since this is the case we should not have to worry about clocks being off by one hour. I do not get the warm and fuzzy with this statement. I feel that if it were that easy it would have been documented as a solution by now. Maybe they are right and I am wrong. Could you give me an explanation why so or why not? Thanks - Any clock synching is done based on UMT/GMT and the locale/timezone o...

Export drawing to EMF file
Hello, How do I export a drawing to an EMF (or other image type) file using the ActiveX in VB6? I've tried the SaveAs and a file is created but it is empty. TIA Vic ...

Automatic save of all messages from a known contact
Hi, I'd like to store automatically all messages from a known CRM Contact. If for example my customers email-address is, I'd like to store automatically all his emails via the Exchange<->CRM Connector regardless to who they are sent to. Is that possible? regards Juergen Tolksdorf Hi Juergen. My company has a product called Effective Email that does exactly what you are asking for. There is a sync event that gets installed on the users inbox. When emails come in, it checks the senders address against the CRM database, and if a match exists, it creates a...

Money 2004 Standar can't convert Money 2000 Delux File
Hi all, I just installed Money 2004 Standar on XP. I just buy It. I used to have a Money 2000 Delux version. When I try to convert my data file (from Money 200), the program makes a copy of the file with the extension "MN8" and then stops with the error: "Money cannot covert the file. The older varsion is not supported" Is there any way I can convert my Money 2000 Delux file into a Money 2004 Standar file? Thanks, Fernando S. ...

Attachments Opening as Read Only File
Whenever I open a Word, Excel, or Powerpoint email attachment, the file opens up as "read only"; this does not happen to any other file attachment. Support says Microsoft is aware of this problem - has it been corrected? I am having the same problem. Did you ever get it fixed???? "Reed" wrote: > Whenever I open a Word, Excel, or Powerpoint email > attachment, the file opens up as "read only"; this does > not happen to any other file attachment. Support says > Microsoft is aware of this problem - has it been > corrected? > ...