Pulling specific data from a Word document with Powershell
Anybody know of a script that can do this?
I'll keep Googling -
Thanks gang
I'll keep Googling -
Thanks gang
Comments
-
Qord Member Posts: 632 ■■■■□□□□□□Possibly the long way of doing it, but you should be able to create a new-object -comobject "word.application" to open and read the file, **** the contents into an array, then filter it. Although parsing that could be a major pain, depending on what you're looking for. Any way to migrate the docs to csv for easier handling?
-
odysseyelite Member Posts: 504 ■■■■■□□□□□I haven't used powershell within word, but years ago I used VBA to perform these type of functions.Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action
-
N2IT Inactive Imported Users Posts: 7,483 ■■■■■■■■■■Yeah I am going to **** to CSV. I ran SYDI and the reports are about 22 pages each and I have several thousands. I would perfer not to use the eye method.
Thanks for the great recommendations. -
ptilsen Member Posts: 2,835 ■■■■■■■■■■CSV will definitely be easiest. Import-CSV for the win.