-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Office and VS Code synchronization (macro export/import) #54
Comments
Just adding information here, but XLWings (which is still maintained) provides this functionality. It's not perfect but it works as a stop-gap until this extension implements similar. https://www.youtube.com/watch?v=xoO-Fx0fTpM It's a little oversold (omg! line numbers!), but it does autosync. With better autocomplete in VSCode this could be really powerful. I will also point out, that XLWing's method (which I assume is not modifying the file directly) is likely superior to trying to modify the Excel file directly. The ability to edit VBA live with the file open is incredibly powerful. |
@Pluckerpluck thanks for sharing this. It looks quite promising however for VS Code a JS/TS implementation is needed to be fully portable and compatible. |
Hi, would something like https://github.com/NetOfficeFw/vbamc compiler help with this? We have source code in |
@jozefizso thanks for the suggestion. Although I don't think it's very helpful. |
The tool creates final document from a basic empty template but it is quite easy to change it and use any document as the source. |
See @Beakerboy's vbaProject-Compiler for this feature :). Written in Python which isn't super ideal for VSCode, but the python could be compiled to an executable exe for the sake of this project. |
My project is not quite done, but it’s getting there and I’m willing to take advice, testing, and pull requests from any potential users. The linked project takes the raw text sources and creates all the streams. I have another project with the goal of creating OLE files from a set of streams. |
@sancarn this looks promising. I lack the resources to work on new features or integrate this into the extension right now. My (initial) approach would be to add a command to the extension that downloads/updates the compiler. And another command that will execute it using a Python version found on the users system. |
I'd love to see this feature come alive. Would a bounty help? 🤔 🤑 |
@knobhead a bounty would definitely be motivating and might allow me to dedicate time for this feature. |
Great! I have no idea how to set that stuff up, but i'd chip in 50EUR or so (I'd prefer IBAN/SEPA payment, however. paypal et al suck policy-wise). |
@knobhead I wan't to give you the estimate, that I will start on this feature in October. |
@knobhead sorry for the long time without update. Other important tasks slowed the progress. Bringing the code back into the document is however a lot harder than I anticipated. Thus I will for now do not further work on that part. |
As an update on my side, I have a project that demonstrates a GitHub workflow to develop VBA. Devs save their code in text files in Git, and GitHub actions are triggered to lint the code automatically, and create an xlam when a release is tagged. |
any update on this feature? |
I'm planning to follow this approach here: |
Due to personal reasons, I have to sadly admit, that I won't be able to actively develop new features for vscode-vba. So no native import/export for this extension developed by me:( Tho I will still maintain this repo, moderating issues, making releases and merging PRs from others. Regarding a export/import feature, there have been several workarounds and solutions posted here, that might work well for you. |
What problem does the feature solve?
Keeping office macro project and a project with plain text source files is quite hard right now.
One has to either do manual copy and paste or rely on (unmaintained) 3rd-parties or some custom hacks.
Therefore some code should be developed, to solve this task.
Requirements
General
Document to Source (Read)
Requirements
vbaProject.bin
from macro documentsSource to Document (Write)
Requirements
vbaProject.bin
Optional
The text was updated successfully, but these errors were encountered: