Solved

Is there a way, in VBA, to uncheck the Attributes for an excel  file

Posted on 2016-08-26
2
40 Views
Last Modified: 2016-08-28
windows 7

vba  2010
Access or excel

Is there a way, in VBA, to uncheck the Attributes for an excel  file  ?
specifically   "encrypt contents to secure data"
through code ?

Thanks
fordraiders
0
Comment
Question by:fordraiders
2 Comments
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
ID: 41772504
Within Excel, with the specific document open

ActiveDocument.Unprotect Password:="pwd"
http://www.vbaexpress.com/forum/showthread.php?24011-Solved-Unprotect-a-document-with-a-macro

Within Access, well you'd have to automate Excel, open the file, and send that command to the Workbook object corresponding to the file you just opened.
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 41774261
thnx
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question