r/visualbasic • u/natty_codes • Sep 06 '25
Article VBA is good in terms of beginner that gives a type of introduction to coding
[removed]
31
Upvotes
r/visualbasic • u/natty_codes • Sep 06 '25
[removed]
9
u/[deleted] Sep 07 '25
VB.NET would be better to learn (plus it's truely object oriented which VBA lacks). Plus you'll gain .net understanding that transitions to c# nicely.
Download visual studio community (not vscode) and have fun
6
u/JoseLunaArts Sep 07 '25
VBA is extremely useful when you have to handle Excel data at the office. It is great for prototypes and local solutions.
5
u/freskgrank Sep 07 '25
I’m a professional developer with over 6 years of experience. I started with VBA and enjoyed it, but the earlier you move to a “real” programming language, the better.
VBA and VB6 lack many features of modern languages, are not object-oriented, have almost no proper error handling, and make project architecture difficult to manage.
If you enjoy coding, switch to VB.NET as soon as possible: the syntax will feel familiar, but you’ll gain exposure to essential concepts for modern software development. Once you’re comfortable with the .NET ecosystem, move to C#. Unfortunately, VB.NET is essentially a dead language now - it’s no longer being updated or receiving the latest features.
4
u/markaritaville Sep 07 '25
There’s still a surprising amount of billion dollar financial business completely dependent on VBA code in excel and access. People don’t realize the quiet guy in Accounting doing end-of-day stock market clearing loan allocations does it with a spreadsheet that is only saved on their PC. Doh
3
u/Western_End_2223 Sep 07 '25
Yes, you can learn about those things in VBA. But, since VBA is generally run inside an application like Excel or Access, you spend a lot of time having to learn how to deal with the application-specific object model (ranges, cells, workbooks, sheets and so forth) instead of really learning how to program.
3
u/Sharp-Round-7762 Sep 07 '25
We learned Pascal then moved to Embarcadero Delphi, which has a really nice IDE, similar to Visual Studio. Not sure if anyone should learn Pascal these days, but that's how I started.
3
u/diesSaturni Sep 07 '25
Biggest benefit of VBA with excel is that you can test code immediately, without the need for compiling. As well as the ease of debugging.
Then, in msaccess I mainly use it for handling events (button, form load, record select etc), and for creating loops (print pdf per client)
Word also still benefits from VBA, but requires a bit of a different angle to get more complex things to work(other than just one liners like saving, formatting or refreshing fields.
So a very good entry point to coding. You’ll find out in time when you hit ceilings where it is time to move to other platforms.
But for me still a very good languages to test some proof of concepts.
2
u/Frequent-Complaint-6 Sep 07 '25
BASIC was the best even with limitations. I also liked VB 1-6 running well out of the box. IDE was so good for beginners. Nothing has come closer until now Vibe Coding.
2
u/Mayayana Sep 07 '25
VBA is for MS Office, though it's almost the same as VB6. If you're looking to get a job, I'd suggest plumbing. :)
2
u/fafalone VB 6 Master Sep 07 '25
VBA is the same language as VB6 (and now twinBASIC). It's a general purpose programming language that can make anything; just in a limited environment with some default references you need to add to the others and without a compiler like the others have.
2
u/ZetaPower Sep 07 '25
Agreed, but the switch to OOP is pretty big.
Some unsolicited tips:
Example:
2
u/ilirium115 Sep 07 '25
Congratulations on your first experience in programming! I started at school with BASIC on MSX computers and later used QBASIC in Windows. I also touched VB6 a bit. In university, I didn't program seriously, and by the end of my PhD, I had taught myself Python.
For data analytics, I recommend trying Python. It has many decent libraries that can greatly assist you. For example, Pandas allows working with data in tables, and it can read/write CSV and XLSX files. Matplotlib for plotting figures. As an IDE/editor, you can start with Jupyter Notebooks/Lab, which is excellent for learning and gradual exploration of data. For GUI, Python has a built-in library, Tkinter, which in recent versions looks native.
1
u/mxldevs Sep 07 '25
I've done VB scripting specifically to work with office applications but I don't know if I'd say it's necessarily a good introductory language compared to, say, ruby or Python
1
u/magallanes2010 Sep 07 '25
VBA is awful.
The IDE is 15 years old, and Microsoft refuses to give it a simple fix.
0
u/jcunews1 VB.Net Intermediate Sep 06 '25
BASIC dialect is best for beginners, because it's closest to English. Almost every part of the language is in English.