Quiz Con Macros De Excel
1) Explain what is VBA or Visual Basic for Applications?VBA stands for Visual Basic for Applications; it is an event driven programming language developed by Microsoft. It is predominantly used with Microsoft office applications like MS-word, MS-Access, and MS-Excel.2) Mention where you can write your VBA program for Macro?Module is the place where you can write VBA program for Macro, to insert a Module navigate to Insert - Module3) Mention what are the comments style used in VBA?Comments are used to document the program logic and the user information with which other programmers can work seamlessly on the same code in future. ADO: ActiveX Data Objects or ADO is a universal data access framework that encompasses the functionality of DAOODBC: Open Database Connectivity or ODBC is a technology that enables a database client application connect to an external databaseOLEDB: It is a low-level programming interface designed to access a wide variety of data access object linking and embedding (OLE)7) Explain about function pointers in VBA?The VBA (Visual Basic Information) have flexible applications, but there is a limitation to a function pointer in VBA. Windows API has inadequate support for function pointers because it has the ability to use the function but not the functional support to call back the function. It has inbuilt support for the call but not for a callback.8) Explain how “reference counting” in VBA is done?In VBA, soon a variable goes out of scope, the reference counter on the reference object is decremented. When you assign the object reference to another variable, the reference counter is incremented.
While when your reference count reaches to zero it terminates the event.9) How can you decrease the reference counter explicitly?To decrease the reference counter explicitly, you need to set a variable to “Nothing”.10) Explain what is COM (Component Object Model) objects in VBA?COM objects are usually.dll files, and are compiled executable programs.11) Explain how can you dial a phone number through VBA?In order to dial a phone number through VBA, you need to follow the following steps. Shell command in VBA can be used to start the dialer present in Windows O.S.
How To Make A Multiple Choice Quiz In Excel Vba
To connect to your modem, phone number can be used. With the help of send keys and shell command, you can dial to your user.
Macros Para Excel
Por medio de este examen se miden sus capacidades basicas en Macros de Excel. VBA is the acronym for Visual Basic for Applications. It is a programming language that Excel uses to record your steps as you perform routine tasks. You do not need to be a programmer or a very technical person to enjoy the benefits of macros in Excel. Excel has features that automatically generated the source code for you. 4) What is the largest Excel file you can have? Either for a single workbook or a combination of open workbooks. 32 Bit - Excel 2013 / 2016 - 2 GB of memory.
Excel Macro Examples
Sendkey dictate the windows to dial according to the keystrokes of the application while Shell activates the Windows application. A macro can be used to initiate the card file program which triggers the auto dialer feature12) Explain what is the meaning of “Option Explicit”?
Where it should be used?“Option Explicit” makes the declaration of variables mandatory. Line explicit function makes the compiler to determine all the variables that are not declared by the dim statement. This command diminishes the problem of type errors significantly. It is used in VBA because it deals with information rich application in which type errors are common. Before starting any, sub-procedures it can be used inside a module.13) Explain how can you pass arguments to VBA functions?When arguments are passed to VBA functions, they can be passed in two ways. ByVal: When argument is passed by Value, then it means that only value is passed to the procedure, and any changes that are made to the argument inside the procedure will be lost when the procedure is exited.
ByRef: When the argument is passed by reference than the actual address of the argument is passed to the procedure.