If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Getting Excel to only open an xls file if Macros are enabled

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-06, 12:45
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
Exclamation Getting Excel to only open an xls file if Macros are enabled

Hey guys like the title says i need a way to password secure an xls file but inorder to do this i need macros enabled. any suggestions.
Reply With Quote
  #2 (permalink)  
Old 10-24-06, 05:31
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
I'm unclear from your description of what is required.

Sounds like an instance where one might make (on file closure) all sheets xlSheetVeryHidden except one. That one "entry sheet" has a message along lines "macros must be enabled for this workbook to function".

On file opening, an autorun routine hides this "entry sheet" and reveals the worksheets you want exposed. And if the file is opened without macros enabled, the autorun macro obviously won't run & this entry sheet is all that the user sees. VBA password protected, BTW.

If that makes sense? Again, I'm not sure if this is what you're after...

regards,
Fazza
Reply With Quote
  #3 (permalink)  
Old 12-06-06, 23:22
Kicker Kicker is offline
Registered User
 
Join Date: May 2004
Posts: 14
Why don't you just use the password protection when you save the file?

Save As
Tools (icon at top right of window)
General Options

Enter a password to "open" the file
enter a password to "modify" the file
__________________
ttfn
Kicker
Reply With Quote
  #4 (permalink)  
Old 12-06-06, 23:26
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
hi Kicker,

What would that achieve? The file could be opened without having macros enabled. The original question is to not allow this situation.

regards,
Fazza
Reply With Quote
  #5 (permalink)  
Old 12-07-06, 13:30
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
Sorry for the late reply Fazza's process works fine and its the best course of action. Is there something better than the built in VBA Password Protection?
Reply With Quote
  #6 (permalink)  
Old 12-09-06, 18:05
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Quote:
Originally Posted by Amazing_Spiderman
Is there something better than the built in VBA Password Protection?
Yes. However, I don't know about it. Suggest you start a new thread, 'cause this is really a new question and it will be seen by more people that way. (I understand one approach is to use Visual Basic and create a COM add-in. These are little more than familiar words to me; I've read this sort of answer but personally am unfamiliar with it.) Regards, Fazza
Reply With Quote
  #7 (permalink)  
Old 12-11-06, 07:15
Kicker Kicker is offline
Registered User
 
Join Date: May 2004
Posts: 14
Sorry Fazza
I read that wrong.
__________________
ttfn
Kicker
Reply With Quote
  #8 (permalink)  
Old 12-11-06, 17:39
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
No worries, Kicker. We all read 'em wrong sometimes. I'm expert at it, even. :-)
Reply With Quote
  #9 (permalink)  
Old 12-17-06, 13:01
"L"PLATE "L"PLATE is offline
Registered User
 
Join Date: Mar 2004
Location: UK
Posts: 82
if you digitaly sign your work book using the tools menu in vba window and when you open your work book you tick "always trust this publisher" then the work book will open with marcos enabled every time (see my post on opening access runtime withoit the permissions box)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On