Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I was hoping that this extension would enable me to writeback to Excel while the file is open - basically replacing the default "advanced" editor. What I am experiencing is that I can't write changes back to the file unless it's closed. Is there a mechanism from VSCode to make the Excel file "writeable" even while the Excel front end is open with the file? Or is this locked down by design?

You must be logged in to vote

Unfortunately, Excel locks open files down pretty hard while they're open. I have the same issues editing my files, which is why I created a "watch Excel file" mechanism in the recent release. The extension is waits a configurable amount of time for you to close the file so it can sync back. This is a new feature that's largely untested, as I'm pretty disciplined about closing my files while I edit the .m code.

I'm open to suggestions on how we might sync back to open files. I believe we'd have to use the Office object model, reaching pretty heavily into Windows and Office APIs. I suppose we could just brute-force it and write some RPA to open Advanced PQ editor and paste it in! That's ki…

Replies: 2 comments · 1 reply

Comment options

Unfortunately, Excel locks open files down pretty hard while they're open. I have the same issues editing my files, which is why I created a "watch Excel file" mechanism in the recent release. The extension is waits a configurable amount of time for you to close the file so it can sync back. This is a new feature that's largely untested, as I'm pretty disciplined about closing my files while I edit the .m code.

I'm open to suggestions on how we might sync back to open files. I believe we'd have to use the Office object model, reaching pretty heavily into Windows and Office APIs. I suppose we could just brute-force it and write some RPA to open Advanced PQ editor and paste it in! That's kinda klunky and hacky though. Excel UI manipulation is unreliable at best, as is reaching into the object model.

That said, I KNOW this sort of thing is done with Excel extensions. Way back in the day I used to use ShowCase / Essbase Excel extensions, and this thing created real Excel objects (querytables and pivot tables) backed with hooks to Essbase, and it just looked like a pivot table field selection with extra cube features. Might be worth investigating--an Excel extension to talk to the VS Code PQ Editor extension?

I'll add this to the enhancement requests and see what I can can come up with!

You must be logged in to vote
1 reply
@Wilson421
Comment options

...I created an issue for this. Huge project going on at work at the moment (which I created this extension for in the first place). When I come up for air I'll look into syncing back live to open files.

Answer selected by namgaw
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.