Solved

Excel - Macros, VBA, VB Script, and Semantics

Posted on 2014-04-22
3
472 Views
Last Modified: 2014-05-07
Is all code written VBA considered to be a macro?  if not, then what should it properly be called?

And what about VB Script?   Where does that fit in?  The Wikipedia essay is a tad puzzling and doesn't clarify.
0
Comment
Question by:brothertruffle880
3 Comments
 
LVL 27

Assisted Solution

by:MacroShadow
MacroShadow earned 250 total points
ID: 40014693
Not all code is a macro, there are two types of code: 1) function - returns a value. 2) subroutine or macro - a chunk of code that does some processing.

VbScript is a scripting language which is similar to other VB flavors, but unlike VBA (Visual Basic for Applications) which runs in a host program, such as any MS Office application, VBS is a stand-alone language which you write in a simple text file and just give it the .vbs extension.
0
 
LVL 9

Accepted Solution

by:
Christopher Jay Wolff earned 250 total points
ID: 40014716
I guess it depends a bit on who is answering.
Some prefer that Macros are generally the recorded steps that are turned into code by a macro recorder, while VBA is written code that can use functions and variables and perform things with an app that can't be done with the user interface.  Good explanation is comment #4 from Weaver here...
http://www.mrexcel.com/forum/excel-questions/602460-difference-between-macro-code-visual-basic-applications-code.html

VB Script is described as a subset of VBA as in this article.
http://msdn.microsoft.com/en-us/library/ms970436.aspx
0
 

Expert Comment

by:leslieb123
ID: 40049540
A macro is a collection of commands that you can apply with a single click. They can automate almost anything you can do in the program you’re using and even enable you to do things you might not have known were possible. Macros are programming, but you do not need to be a developer or even have programming knowledge to use them. Most macros you can create in the Office programs are written in a language called Microsoft Visual Basic for Applications, usually referred to as VBA. VBA macros are the type addressed in this article. Not all Vb codes are macro.

There are many online essay writing services. If you are looking for essay then this will be better. according to your query they will provide essay. Before selecting any writing services read the honest essay writing reviews and go with that
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

830 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