Consulting

Results 1 to 15 of 15

Thread: Does knowledge of Visual Basic.NEt help with VBA?

  1. #1

    Does knowledge of Visual Basic.NEt help with VBA?

    My County College is offering courses in Visual Basic.NET. I am really interested in VBA for Excel (for which there are no courses) and I have no interest whatsoever in application/software development. A question to you experts: is a basic knowledge of Visual Basic.NET of any benefit (even peripherally) in coding VBA?

  2. #2
    VBAX Tutor
    Joined
    Mar 2005
    Posts
    268
    Location
    It probably is, but I'm not sure if it's the best way of getting there. I often refer to VBA.NET documentation I find on the web while trying to address issues with VBA for Office. But there are a lot of differences in terms of implemented features.

    If nothing else, maybe you'll be able to report back to us with Microsoft's May 2005 explanation of what the hell .NET is supposed to be. ;-)

  3. #3
    VBAX Mentor
    Joined
    Sep 2004
    Location
    Nashua, NH, USA
    Posts
    489
    Location
    Quote Originally Posted by K. Georgiadis
    My County College is offering courses in Visual Basic.NET. I am really interested in VBA for Excel (for which there are no courses) and I have no interest whatsoever in application/software development. A question to you experts: is a basic knowledge of Visual Basic.NET of any benefit (even peripherally) in coding VBA?
    VB .NET is irrelevant for using VBA in Office, and can indeed be confusing.

    If you need to learn Excel VBA:

    1. Start with the MSFT Press Excel VBA Step By Step.
    2. Get John Walkembach's book. See http://www.j-walk.com/ss/books/xlbook25.htm.
    3. Get the Progessional Excel Development book, see http://www.bmsltd.ie/ProExcelDev/Default.htm.

  4. #4
    Thanks guys! I have MS Excel VBA Step by Step and John W's book. (of course, based on my sophomoric posts, you must have deduced that neither of these has helped me very much!)

    You confirmed what I was suspecting and I am scrapping the idea of a VB.NET course.
    Last edited by K. Georgiadis; 05-01-2005 at 06:04 AM. Reason: additional cmment

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Quote Originally Posted by BlueCactus
    I often refer to VBA.NET documentation
    There is no such a thing, VBA.NET. You refer to VB.NET documentation which an Object Oriented language while VBA is an events oriented, so it would not be of much help for sintax, only for logic and even for just some aspects.

    The only reason I may think studying VB.NET could be usefull for those who want to work with Excel is if you are planning to program for excel using Visual Studio .Net and VSTO (I have two articles here about VSTO and one out of them telling how to migrate from VBA to VB.NET which you may find very helpfull at this question).
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

  6. #6
    VBAX Tutor
    Joined
    Mar 2005
    Posts
    268
    Location
    Oops! You're right. Shows you how much attention I really pay to it!

  7. #7
    Administrator
    VP-Knowledge Base VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Quote Originally Posted by BlueCactus
    Oops! You're right. Shows you how much attention I really pay to it!


    You right, actually we dont even need to bother with VB.NET yet, as VBA will still rule for many years. Just to bring a major issue for this migration: VSTO only works fine IF you user has Microsoft Office 2003 Professional, not on Standard, Academic, Small Business and so on. I cant figure out why MS didnt make available a download to make it work on other versions, but it is a major issue!
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Paleo

    You right, actually we dont even need to bother with VB.NET yet, as VBA will still rule for many years.
    With support for VB6 just having ended, that seems an unsubstantiaited statement to me. I am sure it has some mileage yet, but I bet MS would love to bring it under the Net umbrella, they just can't do it.

  9. #9
    I had already decided that Visual Basic was not for me (I'm confused already, I don't need extra help!)

  10. #10
    Administrator
    VP-Knowledge Base VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Quote Originally Posted by xld
    With support for VB6 just having ended, that seems an unsubstantiaited statement to me. I am sure it has some mileage yet, but I bet MS would love to bring it under the Net umbrella, they just can't do it.
    Remeber that Office still have support for version 5 macros.
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

  11. #11
    VBAX Mentor
    Joined
    Sep 2004
    Location
    Nashua, NH, USA
    Posts
    489
    Location
    Quote Originally Posted by xld
    With support for VB6 just having ended, that seems an unsubstantiaited statement to me. I am sure it has some mileage yet, but I bet MS would love to bring it under the Net umbrella, they just can't do it.
    Office macros are in VBA, which is entirely based on VB.

    At some point, I expect that MSFT will have a .NET variant of "VBA" for use within Office. however, at best that will happen in the next release of Office, which will also have VBA.

    VBA is necessary for programming in Offiice 97 to Office 2003, so the need for VBA will be arouund for some time.

    Of course, one could automate VBA from VB .NET or from VB 6. However, it is a lot easier in VB 6 than in VB .NET, especially for the "non-programmer".

    The biggest shortcoming, at least to me, for using VB .NET, instead of VB 6, for automating Office is that VB .NET code cannot be protected from prying eyes. With VB 6, one can compile the code into .exe or .dll files and the source code is protected.

  12. #12
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Howard Kaikow
    Office macros are in VBA, which is entirely based on VB.

    VBA is necessary for programming in Offiice 97 to Office 2003, so the need for VBA will be arouund for some time.
    There is a huge base of applications in VB6 out there as well, but support for that has ended. AFAIR it is only guaranteed to be around until 2008 (?). This is why the Classic VB petition is important, MS must undedrstanmd that they have a responsibility to the users/businesses that have invested heavily in their products, and they cannot just abandon them because it is more convenient.

    Go and sign the petition.

  13. #13
    VBAX Mentor
    Joined
    Sep 2004
    Location
    Nashua, NH, USA
    Posts
    489
    Location
    Quote Originally Posted by xld
    There is a huge base of applications in VB6 out there as well, but support for that has ended. AFAIR it is only guaranteed to be around until 2008 (?). This is why the Classic VB petition is important, MS must undedrstanmd that they have a responsibility to the users/businesses that have invested heavily in their products, and they cannot just abandon them because it is more convenient.

    Go and sign the petition.
    msft will not commit suicide by not allowing vb 6 to run in future os for quite some time.

    i will continue to use vb 6, instead of vb .net, to automate office merely because:

    1. Such solutiobs can work with with Office 97 to Office 2003, and likely future versions of Office, as VBA would still be around in a ,NET-ized Office, just as WordBasic is around now.

    2. VB 6 allows me to hide my code, VB .NET does not. I would abandon VB 6 for future needs if msft gave us a way to protect our source. VB .NET is a better language, for "programmers", than is VB 6, not to mention the benefits of using Wondows Forms and the .NET Framework.

    As an intermediate step, I'll likely resort to using VB .NET wrappers to call VB 6 .DLLs for Office.

  14. #14
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Quote Originally Posted by K. Georgiadis
    My County College is offering courses in Visual Basic.NET. I am really interested in VBA for Excel (for which there are no courses) and I have no interest whatsoever in application/software development. A question to you experts: is a basic knowledge of Visual Basic.NET of any benefit (even peripherally) in coding VBA?
    Actually... VBAX offers Excel VBA training. See here
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  15. #15
    Administrator
    VP-Knowledge Base VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Quote Originally Posted by kpuls
    Actually... VBAX offers Excel VBA training. See here
    Exactly! The best place to learn it!
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •