Security Alert "This file contains encrypted macros...&

bem

New Member
Joined
Mar 19, 2003
Messages
7
I beg your mercy.

I just loaded Excel 2007, and then opened a workbook I wrote that made pretty extensive use of macros and code. I knew enough to first set up Excel via the "Trust Center" to allow ALL macros to run, against MS's, or more likely against MS's lawyer's, recommendations. btw, does anyone have a clue as to what "Trust access to the VBA project module" is all about? Apparently MS doesn't, for I have searched Help and the KB for it in vain. Anyway, I brought the old xls workbook in, then saved it as a macro-enabled spreadsheet, .xlsm. Then I open it, and uhg, a most distasteful surprise. Even though I specifically went in and set Excel to run all freaking macros, someone at MS has decided I am too stoooopid to make this decision, and all macros have been automatically disabled. OK, so let us click where it says "Options" on this warning bar. A window pops up telling me that this file contains encrypted macros that have been disabled...". Do a search on that, again, MS, MS kb, even Google, and you are not going to find it (In quotes). There is ONE freaking option with a radio button now, telling me "Help protect me from unknown content" - again, I try a Google search, an MS search and an MS kb search... nothing directly addressing it; but I do the logical intuitive thing - there is a selected radio button there, so click it to unselect it. Click the idiot thing until the cows come home, darn it, it won't do a thing! I even tried an Alt-p as they have the "p" underlined - all that does is select the statement, it remains selected, tap the space bar, hit the space bar, stand on the space bar... First they disable all the macros. OK, I can live with going in and fixing that, but then deciding that I am too dumb to make that choice so don't allow me to turn them on in my own freaking code??? Yes, it has been several hours and I am still pissed off beyond belief. Please, can anyone out there have sympathy on me and help me with this???
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Uhg.

Maybe it is my anxiety problem, or too much coffee, or a combination, but there is almost a voice screaming in my head asking me why no one seems to think there is something horridly wrong with such a substantial problem existing with a commercially released program and no one yet knowing of a fix. I also have the same problem posted on the MS Excel 2007 beta board and getting the same result - multiple views, not one suggestion of a fix nor work-around. If I save it in 2003 format and deny the escalated encryption offered by 2007, I do not have the problem. The "Fix" appears to be "Don't use 2007 file format", which is about as horribly wrong as MS's idea of security with macros being to simply disable them. That is like saying that you should go out and buy a new computer, then the manufacturer completely disables it from running because the best security against malware is to disable your computer from running at all, so you use paper and pencil, even though you spent hundreds, if not thousands, of dollars on (which island property is Bill vacationing on this week? North America?) and despite promises of increased productivity, relegating it to being a paper weight.

Yes, I know this is turning into a personal rant, and I really don't want to offend anyone, but it stikes me as extremely offensive and wrong for anything to go out broken like this - it is why the automobile industry got hit with "Lemon Laws".

Perhaps the same is needed for commercially released software.
 
Upvote 0
An interesting read, I thank you!

I found only one name that 2007 decided was not up to it's idea of what was permissible, which was pmt001 - 2007 decided to rename it, after advising me, to _pmt001. Even though there are sequential names of pmt002 through something like pmt149. Schizophrenic program.

Heh. I thought I had waited long enough after the official release for all the first-release-gotta-have-dummies to conduct the real beta. Little did I know I was about to become one of them...
 
Upvote 0
I'm not sure exactly what the problem is.
advice - user the Enter key some.. it'll make it easier to read your rant :-)

Can you summarize exactly your issue? Then I'll take a go at it.

I'll say this on Excel security: Unless you set up a specific folder as a secure site, even if you set your macros to run, Excel won't run it until you confirm. That's just the way it is. Think of it as the enable/disable macros..

I've got the book I'm working on - all the sample files are in one folder, so i've configured excel to recognize that folder. No prompts (almost as good as a signed project)

anyway - clarify the exact problem and I'll give it a go.
 
Upvote 0
Let me back off of the intricacies of the problem and shoot for the big picture...

1) How do I turn off "Help protect me from unknown content" completely; and,

2) What the heck does turning "Trust access to the VBA project module" in the "Trust Center" on or off actually do?

Oh, and I have to believe you had your friend substitute the artwork simply to tone down the sheer animal attraction to your beauty; for otherwise, how could you get any work done with all us guys asking for your phone number?
 
Upvote 0
I work from home. Only way the guys could get anything done.

1) Not sure how to get that prompt exactly.. but try this: Office button, Excel Options, Trust Center, Trust Center Settings, Enable all macros

tho, b/c of #2, I assume you know that. What I've done is setup specific folders that I trust completely... So I only get the prompt for some workbooks, but not all

2) Used when programming to the VBE, like a program that deletes a module.
 
Upvote 0
Thanks -

The second looks like it relates to my "autodestruct" sequence when the module I wrote for unlocking a number of functions detects it is being hacked.

Unfortunately I have already set the program to enable all macros through the security center, AND, by your advisement, created a trusted folder setting for where this workbook resides, which is why I am getting so darned frustrated over it deciding it will disable all macros anyway. Seems this type of mentality would have us always wearing blow-up balloon suits and safety helmets when we step outdoors. I guess soon Outlook will be recoded never to allow html nor attachments.

Another "funny" undocumented feature is that though 2003 has no problem with one name being PMT001 (I have PMT001 through roughly PMT149), 2007 insists on renaming that one, and only that one, name.

Taking a look at program size, my original 2003 file is 5.1MB. When saved to 2003 format from 2007, it now becomes 4.73 MB - a little scarey, but for now I will presume better compression. What is definitely scarey is that when I save it to xslm format - macro enabled 2007 - it becomes 455 KB. That is KB, not MB, and that is not a good sign...
 
Upvote 0
Hi there,

Regarding the "Trust access to the VBA project module" setting, this has been in Excel since 2002, and has always remained separate from the main setting that allows macros to run. If you have the Trust Access setting off, it will prevent any macros that check, add, modify or delete code in the actual code modules. It's just an extra layer of security that MS threw in there.

It's one of the first settings I turn off, in truth. :)
 
Upvote 0
don't worry about the formats - excel 2007 uses a COMPLETELY new method - that xlsm is actually a zipped file.

Could the warning you're getting be unrelated to macros? there's also a similar warning for external connections.

i've run a number of macros I've run through the 2007 so far... and it hasn't blocked any of them... is it the same workbook as #2? maybe that's causing it. I haven't dealt with any VBE macros.

pmt1 is a cell address in 2007. i created a named range in 2003 of pmt001 and brought the workbook in to 2007. when i saved it in 2007 format, it renamed the range. perhaps there was something in your other names because it should have renamed them all. look carefully
 
Upvote 0

Forum statistics

Threads
1,225,312
Messages
6,184,215
Members
453,221
Latest member
krish23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top