Your Go To Place for Learning VB for excel?

  • Creator
    Topic
  • #1446317
    csvirk
    Participant

    Lately I want to get into coding and I thought its best to start with VB in excel since I use excel for work. Please tell me what are the best tools out there to master VB for excel. Thank you,

    AUD - 80
    BEC - 86
    FAR - 77
    REG - 84
    Hardwork will always pay off!

    FAR: 71, 77!
    AUD: 69, 80
    BEC: 72
    REG: 84

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #1446605
    isoceles
    Participant

    I have experience with several languages, and how I go about learning them is generally not through a book, but by trying to solve problems. What I mean by that is figure out a problem (i.e. publishing reports) that you want to solve in VBA, then try to figure out how to solve it.

    Use YouTube to get some general help, and Google specific questions. There are a couple big Excel sites out there that have good resources for VBA. VBA isn't the easiest, but it's very applicable due to all of the work done in Excel. It also has one very helpful tool for learning: Macro recorder. You can record yourself doing things then look at the code generated. Usually with some minor alterations to the code you can customize it for yourself.

    #1446896
    Anonymous
    Inactive

    Google is my go-to source for everything related to Excel, including VBA. I learned a programming language during college (Java – 2 semesters worth), and from that, I learned the basic elements of how programming works. With that base knowledge, I was able to record macros in Excel, then look at the VBA and “read” it, modifying as necessary. So, when I recorded the macro, I sorted A2:A327. But, if my data can range from 200 – 1000 records, depending on the day, then I can find where it indicates stopping in A327, and change it to A1500 (just giving myself some extra wiggle-room). After editing a few scripts, you start to understand the language more, and you're able to inject your own lines of code…or eventually, even write one from scratch.

    If you have no programming knowledge at all, it might be worth considering taking an intro to programming class somewhere (community college or something online, maybe coursera has one?) to get the basics of what syntax is and how programming works. Then from there, you can expand it to any other language, since they all have a lot of similarities, though their specific rules are different. (It'd be like learning any of the Latin/Greek based languages, if you were coming from an Asian country – you've got to learn the base alphabet first, which is shared by all of them, and then you've got to learn words and sentence structure. French and Spanish might have more in common than either of them do with English, but the basics still carry over. If you want to learn Spanish but only French courses are offered, then as someone who only knows Chinese, learning French will teach you enough of the basics of Latin/Greek based languages for you to be able to learn Spanish on your own. Then if you move on to English, our sentences are structured backwards, but the words still often have similarities. Programming languages are more alike than “real” languages, since they're usually all based on English words etc., but the high-level concept is the same.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.