r/visualbasic • • Feb 16 '16

[VBA] I need some suggestions on what visual studio has to offer.

I have a computer science background, and I've already picked up on the VBA language. My future employer wants me to come up with a training plan so they know I understand everything completely in Visual Studio and VBA before I actually start on the main project. Any suggestions on what I could do? Is there some type of "hierarchy" of VBA tools in Visual Studio?

5 Upvotes

6 comments sorted by

3

u/TheFotty Feb 16 '16

VBA and Visual Studio don't really go together. VBA is Visual Basic for Applications, and it was a subset of VB specifically written to extend and automate functionality of Microsoft Office applications. VBA is programmed directly from the Office applications using their built in VBA code editors. Visual Studio on the other hand is the IDE for programming languages like VB.NET, C#, C++, etc..

Visual Studio has templates for Office plugins, but these are still very different from VBA. So you need to clarify what it is you are actually looking to do.

2

u/juicyduckfarts Feb 16 '16

I apologize for not knowing the terminology. This will be a desktop application programmed in Visual Basic, using the Visual Studio IDE. I just assumed the proper tag would be VBA since it is a desktop app. Does this clarify anything? Or just make it more confusing? I apologize for being ignorant on this.

2

u/Eleventhousand Feb 16 '16

Based on this last statement, you're not coding in VBA at all. Sounds like you're going to make a Windows Forms Visual Basic application. I'm not sure what you could demonstrate to them for them to let you loose. Sounds like that would be more of their job. The question is so open-ended. I suppose you could develop a sample application with multiple tiers and a deployment package, or click-once deployment. To demonstrate how you'd get it on PCs and support the application. Perhaps connect it to git source control to demonstrate you know the concepts of that.

3

u/hdsrob Feb 16 '16

I'm not sure of any VBA tools that exist in Visual Studio. All of the VBA tools that I'm aware of exist strictly in MS Office.

Since VBA is a subset of VB6, and doesn't have much to do with modern VB / .NET, you might get some better answers over at: https://www.reddit.com/r/vba

3

u/CharlieMay VB.Net Intermediate Feb 16 '16

If indeed you are working with Visual Basic.Net in Visual Studio but will be manipulating MSOffice Documents/Spreadsheets etc... from VB.Net code, you may want to look into the Automation features that VB.Net has to offer. Here's a quick little tutorial to show how to connect to office applications and manipulate them.

If however you just need to be learning VB.Net then I suggest this to get you the basics.

Don't go into that second link thinking you don't want to work in the console, the video series is made to show you the fundamentals of vb.net programming. All of these techniques are fundamental to VB.Net whether you're using the Console, Windows Forms or even WPF as your interface. Once you understand this, it's just a small learning curve to applying this to a WinForms application.

2

u/hdsrob Feb 16 '16

Agree with that tutorial set, just be sure to use the newer version, as that one is outdated:

https://channel9.msdn.com/Series/Visual-Basic-Fundamentals-for-Absolute-Beginners