LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default macros, Passwords, and XP

I've discovered something weird about macros and encryption. I am running
Excel 2007 on 2 computers - a laptop running VISTA and a desktop running XP.
Suppose on the desktop computer running XP I passwordencrypt the Excel
workbook using the Prepare - Encrypt Document. I save the document, close
it and then I open the document and type in the correct password. I then
call up the Visual basic editor and verify that my code is there in the
modules I have created. I try to run a macro and get a message that I can't
do it. This despite the fact that in the Trust Center I have the macro
settings "Enable Macros..." and "Trust Access to VBA Project Object Model"
clicked, and in the ActiveX settings I have "Enable All controls" clicked and
"Safe Mode" unclicked. What I must do is select Prepare - Encrypt and then
give a blank password, which unencrypts the document. Then I save the
document as a macro-enabled document and then close it and then re-load it.
Now I can use the macros. Evidently in XP you cannot use macros in an Excel
2007 worksheet that has been encrypted even after you successfully open the
workbook with the correct password. One interesting thing might provide a
clue as to what is happening. When the file is encrypted and I open it and
then try to run a macro, the macro window displays the macros in the form
[Myworkbook.xlms]!test1 [Myworkbook.xlms]!test2, ..., etc. but when I
unencrypt the workbook, save it, close it and then re-open it the macros are
displayed in the form test1, test2, etc.


The phenomenon I have described does not occur in the laptop running Excel
2007 under VISTA.

I wonder if anyone knows a workaround for this phenomenon.

--
-regards
 
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
Passwords in macros Julian Glass Excel Worksheet Functions 1 October 24th 06 03:28 PM
Passwords Cathi Excel Discussion (Misc queries) 1 October 13th 06 06:01 PM
Macros & passwords Chris Excel Discussion (Misc queries) 3 March 18th 06 01:17 AM
Macros & Passwords paulrm906 Excel Discussion (Misc queries) 2 March 4th 06 07:21 AM
Macros, Protected Books & Missing Passwords jamesanddavid Excel Worksheet Functions 1 April 15th 05 05:45 PM


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