Learning VB

22strider

Active Member
Joined
Jun 11, 2007
Messages
311
Hello Friends

I want to start learning VB. The objective is to learn wiriting code for Excel macros. What exactly should I learn;I keep on hearing term like VB.net, VB Studio.net, VB6 etc.
Could you please suggest from where to start?

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi Rajesh,

If you want to learn VBA (for Excel and the rest of the Office package) the best place to learn is by picking a project that matters to you, and work through trying to automate it. The reason for this, is that unless it matters to you, you won't keep going.
Start by recording macros and then checking out the code. It's not the best code but it shows the syntax.
Try to make changes as you go, and see what happens.
Post recorded code here, with question of how to improve it.
Use the Search function. There are heaps of code samples on this site; it is a great resource. If you see something that you like, but don't know how it works, ask questions.
You can also buy books. John Walkenbach has written VBA books for every Excel version that I know of. Buy the book that matches your version. Bill Jelen has also written quite a lot of stuff; his latest big book is the 2007 one, which is worth getting your hands on. Check out the bookshop on this site.

You'll find that it takes a while to get the structure of the language. Once you have that, the same structure is used in all the other Office applications; what changes is the objects that you work with.

Above all, stick with it. once you get fluent you can save yourself heaps of time, and do things that you would not consider trying without VBA.

Denis
 
Upvote 0
Thanks; I do get projects at work from time to time. I will probably get the book that you suggested and get started.

Thanks again
Rajesh
 
Upvote 0

Forum statistics

Threads
1,225,397
Messages
6,184,718
Members
453,254
Latest member
topeb

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