Posted on 2003-03-20
Medium Priority
Last Modified: 2010-05-01
I have been programming with Visual Basic for Applictions. I understand the langauge no problem. But know my boss wants me to program a GUI interface with Visual Basic. I just wanted to know how hard is for me to switch from VB of apps to plain VB. Just wondering pros and cons, and if im in for a head ache?Thanks
Question by:ocsurf
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8174220
As for me I prefer to use VB.
VBA is more limited then VB.

It isn`t harder to work with VB than VBA

Expert Comment

ID: 8174255
well... it is always hard to switch from languages, but when they are similar, you usually do not get headace...There are some things that can stop you if you're not familiar with, but luckily you can step here and give some points to quickly discover the tricky way to solve matters (from ide options to project properties)...
LVL 44

Accepted Solution

Arthur_Wood earned 200 total points
ID: 8174742
you will find the 'switch' to be ALMOST painless....The ALMOST comes becuase there are SOME things that you CAN do in full VB that you could NOT do in VBA, and there are some things in FULL VB that are completely different from how younprobably did them in VBA.

1) Do in VB, but not in VBA(for example):

   a) Control arrays
   b) depending on the version of VBA you were using, in VB 6 you can create and raise your own user-defined EVENTS
   c) refer to properties of controls even when the control DOES NOT have focus.

2) DO in full VB DIFFERENT from VBA(for example):

   a) fill comboboxes and Listboxes
   b) VB Listboxes and comboboxes have ONLY A SINGLE column of displayed 'data' - no MULTI_COLUMN displays
   c) access database

these are just a few of the issues that you will be contending with, as you make the switch from VBA to full VB 6.

LVL 22

Expert Comment

ID: 8175485
VB and VBA use the same core language, located in MSVBVMx0.dll (x is 5 or 6 depending on version)

What makes these different is that VBA is VB for a specific object such as Word, Excel, Access, etc. and VB is essentially VBA for Windows.

What really makes the two different is the objects that are used and not the language.

Most of the objects in VB are similar to those commonly found in VBA, but with slight variations.  Those variations are likely to cause you headaches.

I've also found that VBA programmers tend to think differently from VB programmers, so it may take a while to adjust to form-oriented programming rather than application-oriented processing.

Other than that, the language is identical so for-next loops, subs/functions, error-trapping, etc are all identical.

Author Comment

ID: 8180950
Everyone Thanks for the help. Im glade that i won't be running into too many headaches


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question