+ Reply to Thread
Results 1 to 6 of 6

VB for Applications to Visual Basic

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    VB for Applications to Visual Basic

    I have a little program I developed in Excel.
    Basically there is a lookup screen where you enter an item to search for.
    It finds it in a table and prints out it and all it's associated items listed in the table.

    Excel isn't really the best format to accomplish this in.

    I just bought MS Visual Studio Professional.
    Never used it, never seen it.
    Never written code in anything other than VB for Applications.

    So here's the question. After learning to use this new software, how easy/difficult should it be to take the VB for Apps code, modify it to Visual Basic and create a stand alone program?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: VB for Applications to Visual Basic

    Hello carsto,

    Visual Studio is really geared more toward browsers, mobile apps, and servers. The languages are similar but not very. The syntax in Visual Studio is more system oriented than Office application specific, like VBA. You will probably still find some operations are easier in perform in one language than the other. So, it is doubtful Visual Studio will replace VBA for all your needs.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: VB for Applications to Visual Basic

    What made you buy something that you have never seen/used. How would you know whether it was any more suitable to your task than Excel/VBA?

    Did you get the .Net version of VS, if so the changes will be more pronounced.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,971

    Re: VB for Applications to Visual Basic

    Assuming you have bought a current version of VS (rather than VS6) then you will be using a .Net language for development. VB.Net is fairly different from VB6 or VBA although there are similarities in some of the syntax, especially if programming against an Office app.
    How difficult it is to convert an Excel app to a standalone app will depend on how much of the native Excel functionality you use and therefore need to recreate.
    I would say it certainly won't do you any harm to learn a .Net language, as Office will become more orientated towards it over time. That's not to say that VBA is going anywhere any time soon though!
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: VB for Applications to Visual Basic

    why I purchased this...
    I've been wanting to learn to program for quite some time but never completed the research to start learning.

    I had the opportunity to purchase new unopened legal software at less than 20% retail but had just a couple days to decide what sotfware to purchase.
    I chose MS Visual Studio Professional because it said you could develope software solutions for a variety of platforms and write in several different languages. It seemed versatile enough to risk spending a small amount of money to get me started.


    the rest of the story...

    Just to see if I could do it in Excel, I wrote this little program for my employer about 2 years ago to replace some (truely obsolete & problematic) custom software they have. Just prior to completion they said I should stop working on it, they had a new plan, which never materialized. Well, today we're out shopping for replacement software, probably custom again! My thought was maybe I could learn fast & modify what I have to save them some money.

    It really has nothing to do with Excel. It uses no native Excel functions. It does no calculations. The only Excel-like portion is the database tables! It uses several Userforms to search the tables for data or to build the tables. Then it actually finds other non Excel files and prints them.
    My boss thinks I can do anything he asks me to do. I keep telling him I'm not an Excel, Crystal, ____ (you name it) wiz. But so far "snow em and learn fast" has been workin for me! I suspect I might be putting myself in way over my head this time, so I thought I'd get some opinions.

    Thanks for your input.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,971

    Re: VB for Applications to Visual Basic

    You might well find that it doesn't require a lot of tweaking to get it working in VB.Net although you wouldn't be using the full power of .Net - Windows forms for example have a lot more power than userforms do. There are some quite good walkthroughs in the VS Help.
    And I can sympathise about your boss - my last one figured that because I could use Excel, it would be easy for me to become a network admin, DBA and Exchange Server admin amongst other things...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1