Solved

Save output file to have permissions for everyone

Posted on 2011-09-06
2
247 Views
Last Modified: 2012-05-12
Hello,

I have a VB script code running in excel which saves a demilited file but I want to save it so everone will have full control on the file kindly help. I have the below code that saves it.

.SaveAs Filename:=sFileName, FileFormat:=xlText, CreateBackup:=False
0
Comment
Question by:welcome 123
2 Comments
 
LVL 8

Accepted Solution

by:
ragnarok89 earned 500 total points
ID: 36490611
I do not believe this is possible, since Permissions are controlled by Active Directory. Typically only network administrators have access to AD.

That being said, what you could do is create (or have your admin create) a folder whith the explicit permission that Everyone has Full Control over the FILES in that folder. This way, when you, or anyone modifies the file (or any file in that folder) it will simply inherit the desired permissions set at the folder level.

Al
0
 

Author Closing Comment

by:welcome 123
ID: 36493164
You are right. I did that. Thanks!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Database 5 40
Excel vba question 7 38
Excel printing an invoice header over two sheets 3 24
Macro problems with Excel file 6 22
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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…

685 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