VBA (Visual Basic for Applications) Interview Preparation Guide
Download PDF
Add New Question

VBA Frequently Asked Questions in various VBA (Visual Basic for Applications) Interviews asked by the interviewer. So learn VBA with the help of this VBA (Visual Basic for Applications) Interview questions and answers guide and feel free to comment as your suggestions, questions and answers on any VBA (Visual Basic for Applications) Interview Question or answer by the comment feature available on the page.

38 VBA Questions and Answers:

1 :: Explain What are the ADO objects?

The ADO objects are:


Connection: Used to make a connection between your app and an external data source, i.e., sql server. Command: Used to build queries, including user-specific parameters, to access records from a data source (which are returned in a Recordset) Recordset: Used to access records returned from an SQL query. With a recordset, you can navigate returned records. You can also add, modify or delete records.
Post Your Answer

2 :: Explain the difference between Msgbox Statement and MsgboxQ function?

MsgBox is a built in VB function which displays a Message Box and MsgBoxQ is a function defined by the user.
Post Your Answer

3 :: Explain Which controls can not be placed in MDI?

The Controls which do not have Align property can't be placed on MDI Form.

E.g., Picturebox only has Align property in Standard Components of VB other controls dont have align property an hence can't be drawn on MDI Form.

Timer control can also be placed on MDI form.
Post Your Answer

4 :: Explain the difference between visual basic, VB script and visual basic applications?

Visual basic is useful if you are planning to develop your programs from scratch. This language helps you in developing Active x controls, exe files, etc.

Visual script is a powerful tool, through which you can create small scale applications on web pages, automation applications, etc. Integrated development environment is not present for VB script.
Visual basic applications are very useful in automating your existing application. VB application is useful for developing already existing applications.
Post Your Answer

5 :: How to format expressions by using VBA?

Format functions can be used to format many of the expressions such as currency, time, date, percentages and numbers. These functions are much simpler to use in VBA. User defined date, numeric and string formats are present in many of the applications.
Post Your Answer
Add New Question