Andreas Hermle
asked on
retrieve group or user names from security tab of the file properties dialog field.
Dear Experts:
I got pdf file names along with their full path in Column A of the current worksheet, such as ...
Column A
Header = Path Names
G:\Company\DMD\PM4\product _scissors. pdf
G:\Company\DMD\PM4\product _pincers.p df
G:\Company\DMD\PM4\product _123.pdf
G:\Company\DMD\PM4\product _456.pdf
G:\Company\DMD\PM4\product _5xy.pdf
etc.
I wonder whether an Excel Macro is able to retrieve information from the security tab of the file properties of the individual files.
In specific, I would like to retrieve all the entries that are listed as group or user names on the security tab.
These entries are to be retrieved and enter into Column B, separated by semicolons.
I hope this is feasible. Help is very much appreciated.
Thank you very much in advance.
Regards, Andreas
I got pdf file names along with their full path in Column A of the current worksheet, such as ...
Column A
Header = Path Names
G:\Company\DMD\PM4\product
G:\Company\DMD\PM4\product
G:\Company\DMD\PM4\product
G:\Company\DMD\PM4\product
G:\Company\DMD\PM4\product
etc.
I wonder whether an Excel Macro is able to retrieve information from the security tab of the file properties of the individual files.
In specific, I would like to retrieve all the entries that are listed as group or user names on the security tab.
These entries are to be retrieved and enter into Column B, separated by semicolons.
I hope this is feasible. Help is very much appreciated.
Thank you very much in advance.
Regards, Andreas
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
Please mark the question as solved if the code solved the problem.
Please mark the question as solved if the code solved the problem.
ASKER
Hi Abbas, sorry for the huge delay in answering. I will some testing today and then let you know. Again, thank you very much for your superb and valuable help,
ASKER
Hi Abbas, wow, I am really/truly impressed, this is just great. Exactly how I wanted it. Thank you so much. this is fantastic.
Before awarding points, what is this testfolder for?
You wrote: "The folder named "testfolder" must exist on the C:\ drive." Did you write that inadvertently or is this really necessary?
Andreas
Before awarding points, what is this testfolder for?
You wrote: "The folder named "testfolder" must exist on the C:\ drive." Did you write that inadvertently or is this really necessary?
Andreas
Hi,
This comment was with the original code. which can be found in this page:
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/secrcw32prov/getsecuritydescriptor-method-in-class-win32-logicalfilesecuritysetting
I just amended some parts of that code.
This comment was with the original code. which can be found in this page:
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/secrcw32prov/getsecuritydescriptor-method-in-class-win32-logicalfilesecuritysetting
I just amended some parts of that code.
ASKER
ok, great,
ASKER
Ftantastic abbas, this is really a great job from you. I really highly appreciate it.
Regards, Andreas
Regards, Andreas
ASKER
Oh, that is great that you tackled this challenge. Will do some testing and then let you know. Thank you very much for your swift response.
Andreass