Newbie: Should I learn C #, VB.Net or VBA / VB for excel programming?

My background: mainly programming in C. I have (very recently ... the last 2 months) acquired JAVA skills (beginner). All my limited experience is based on development for Linux.

I would like to make some preliminary programs for work. My main interest is to start creating “dashboards” and charts / reports from Excel sheets, as I am tired of updating many sheets manually. I am lazy, so I like to automate wherever I can :-)

Which of these "new" languages ​​(for me) would you recommend learning? I also hope that if / when I become more familiar with the Windows / MS Office environment, I can do more “powerful” things.

+3
source share
6 answers

If your main goal is to optimize Excel tasks, then VBA is the language you need to learn.

It’s good that if you have any kind of software background, the learning curve is extremely simple.

Just run Record Macro, complete the task, and then look at the code that was generated. You have a working example to learn.

+9
source

I personally prefer C # as a language, but in terms of released versions, VB.NET is the best language to use with Interop. C # 4 improved this situation, though, with named arguments and optional parameters, the ref argument is falsification and COM PIA binding.

# 4, - , VB.NET.

+6

excel, VBA. , .NET, , VB.NET.

# /, , . .NET Framework VB, C/java , #. VBA, .

+2

Java C, # . # , .

+1

, , . , Microsoft VBA, , , Visual Studio Tools for Office ; , VB.NET # ( - ) , VBA.

... VBA! , Excel , 99% , - , VBA. VBA, , :

  • , , ;
  • Excel ( - ).

VBA , , , , . , , .

PS , , . VSTO, # VB.NET, - Visual Studio (VBA , ). , 20 ! VBA .

+1

Microsoft VBA . , Mac Office 2008. Windows, .

Seeing that you have knowledge of C and Java, and considering that you are starting fresh, I would definitely go with .NET. These are simply the best investments for your time.

As John Skeet says, C # (4.0) is probably the best option if you are not opposed to using beta software.

0
source

Source: https://habr.com/ru/post/1714151/


All Articles