Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
270 views
in Technique[技术] by (71.8m points)

windows - Open excel from powershell not in read-only to allow manual editing

My script currently scrapes some web data and places it into an excel file. However, I need to manually edit some fields before the script continues on.

My question is, once Ive scraped the data into excel, how do I open the application (with my new workbook) and allow editing?

I’ve tried start-process excel.exe but it opens with a read-only warning.

Thank you

question from:https://stackoverflow.com/questions/65867892/open-excel-from-powershell-not-in-read-only-to-allow-manual-editing

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Excel as an application always can do read and write. The question is if the file you are trying to open can be read-only. A read-write file can become read-only when emailed or downloaded. it is the file you want to check.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...