Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-08-26
2
Medium Priority
?
54 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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

886 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