Solved

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

Posted on 2016-08-26
2
50 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

626 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