Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB, VBA, VBScript?

Posted on 1999-06-28
5
Medium Priority
?
310 Views
Last Modified: 2010-05-02
I am going to be building an application in VBA soon.
I've used VB a bit and VBSript quite a bit.  I really don't
know how much different VBA is from VB.  Does anyone know of any good sites that talk about the differences?  Especially,
I'd be interested in good online VBA references/tutorials.

thanks much,
Dena
0
Comment
Question by:denam
[X]
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
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:Dreamn3d
ID: 1520355
hi, while i've never found much use for vba compared with vb this site has some interesting articles and may have the help you're looking for.

http://www.smsb.demon.co.uk/

Hope this helps,
Jesse
0
 

Accepted Solution

by:
DarrenJ earned 100 total points
ID: 1520356

You can in most cases treat VBA like VB.

The major differences are that all variable are treated as variants so you can not do this in VBA

Dim MyVar as Long

You would just use

Dim MyVar

The variant data type works out what type to store, etc.

Other than that it's basically a cut down Visual Basic you
notice some keywords don't exist, But the major ones are.

For general information on VBA check out the MSDN library (available online at www.microsoft.com) and http://msdn.microsoft.com/vba/


0
 
LVL 1

Author Comment

by:denam
ID: 1520357
Is there any rule of thumb regarding when to use VBA and when to use VB?

Dena
0
 

Expert Comment

by:DarrenJ
ID: 1520358
Well if your writing an application to run under Windows you would use Visual Basic.

But if you want to add extensions to Word/Excel you would use VBA.

With web pages (ASP, Client Side Script) you HAVE to use VBA.
0
 
LVL 1

Author Comment

by:denam
ID: 1520359
Thanks Jesse and Darren, this is what I needed to know.

Dena
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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

705 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