Solved

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

Posted on 2016-08-26
2
38 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now