?
Solved

Excel - Macros, VBA, VB Script, and Semantics

Posted on 2014-04-22
3
Medium Priority
?
547 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 28

Assisted Solution

by:MacroShadow
MacroShadow earned 1000 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

840 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