Solved

Excel - Macros, VBA, VB Script, and Semantics

Posted on 2014-04-22
3
452 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 26

Assisted Solution

by:MacroShadow
MacroShadow earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now