VB.net "vs" Excel VBA

Nikolis

New Member
Joined
Sep 12, 2022
Messages
27
Office Version
  1. 2007
Platform
  1. Windows
Hello everybody,

I have recently started learning Excel VBA, with an eye of making a couple of apps for myself. However, I would now be interested to make them as .exe files and standalone projects, so that I might possibly be able to sell them. So far I realize that ;
- Excel VBA needs ... Excel but leads to no .exe ,
- the original Visual Basic has not been standalone for years and was more like a DOS-based language (only code, no visual components etc.),
- VB.net (while not considered as high as Python, Java etc.) is standalone and does lead to .exe, also does have the visual components that I use in Excel VBA userforms.

Long story short ; with the exception of cells/ranges (maybe with arrays replacing them) does VB.net have 100% the same code/syntax as Excel VBA, so that I wouldn't have to learn a new language from the beginning ? Meaning, is it the modern version of the "old" VB but without the Excel part ?

Thank you in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Long story short ; with the exception of cells/ranges (maybe with arrays replacing them) does VB.net have 100% the same code/syntax as Excel VBA, so that I wouldn't have to learn a new language from the beginning
No, it does not.
There are a number of similiarities, but they are NOT the same.
Knowing one may help you in learning the other (due to the similiarities), so you kind of have a heard start.
 
Upvote 0
Hey,
VBA is an interpreted language, while VB.NET is compiled. in VB.NET data is handled using the ADO.net protocol, while in VBA data connectivity and handling are done through DAO, RDO and ADO protocol.
VB.NET is a modern, fully object-oriented language that replaced VB6, while VB is the predecessor of VB.NET and was not an object-oriented language.
A multiplethreaded application can be developed in VB.NET.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top