r/MSAccess • u/brosama1420 • 1d ago
[UNSOLVED] Replacing the default IDE vba editor with VS code
Hello everyone is there anyway to replace the default VBA Editor with VS Code? While running my code normally while using Access or Excel? The codes are saved in my Excel/Access file as normal but I only can interact with the code from VS code? If the answer is yes how can I do it? And the most important question if I did do it what are the benifits I can expect from doing such a thing ?
2
Upvotes
•
u/AutoModerator 1d ago
IF YOU GET A SOLUTION, PLEASE REPLY TO THE COMMENT CONTAINING THE SOLUTION WITH 'SOLUTION VERIFIED'
Full set of rules can be found here, as well as in the user interface.
Below is a copy of the original post, in case the post gets deleted or removed.
User: brosama1420
Replacing the default IDE vba editor with VS code
Hello everyone is there anyway to replace the default VBA Editor with VS Code? While running my code normally while using Access or Excel? The codes are saved in my Excel/Access file as normal but I only can interact with the code from VS code? If the answer is yes how can I do it? And the most important question if I did do it what are the benifits I can expect from doing such a thing ?
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Jealy 90 1d ago
Lol I wanted this too so I had Claude build me a VSCode addin.
It started just as a formatter, but ended with full editing.
2
u/George_Hepworth 5 1d ago
No. There is not.
However, there are at least two efforts at creating third party VBA-like applications. One is called TwinBasic.https://twinbasic.com/ Another is called, I think, RadBasic. https://www.radbasic.dev/
To be honest, it's hard to speculate what benefits you might get. What problems are you actually trying to overcome by considering an alternative.
2
u/saketaco 1 1d ago
You can use a version control add-in to export your project to source code then use VS Code to develop it. When complete you rebuild your project from the edited source code using the same add-in.. https://github.com/joyfullservice/msaccess-vcs-addin
1
u/MultiUserDungeonDev 23h ago
Hey, hope you are doing well today!
That's a great question. I have a free / open source VS Code extension (totally free forever, no strings attached) for exactly this use case.
It reads/writes directly to your VBA office files using open source algorithms that I developed for interfacing with office files. It works with most Excel, Word, Power Point and Access files.
Benefits are numerous including live analysis of your code (tells you if something is not correct and how to fix it), completions (recommendations as you type of all the available code you may want to implement), direct and simple AI agent integration, version control with Git, unit testing, and a lot more.
Check it out, and let me know if I can help in any way:
https://marketplace.visualstudio.com/items?itemName=WilliamSmithE.xlide