VBA Developer
VBA Developer Interview Questions and Answers
Q1. Q) Difference between procurer and function ? A) procurer := Does not retunes value to user Function := Retunes the value to the user Q) Option explicit ? A) To declarer the variable at module level mandatory Q...
read moreExplaining the difference between procurer and function, and the purpose of Option Explicit in VBA development.
Procurer does not return a value to the user, while Function does.
Option Explicit is used to declare variables at the module level, making it mandatory.
Project explanation refers to the description of what was done in a particular project.
Q2. How the different types of Loops work
Loops are used to execute a set of statements repeatedly until a condition is met.
For loop: executes a set of statements for a specified number of times
While loop: executes a set of statements as long as the condition is true
Do-While loop: executes a set of statements at least once, and then repeatedly executes the set of statements as long as the condition is true
For Each loop: used to loop through each element in an array or collection
Q3. There are three switches and one bulb which is in another room. You need to find which switch turns on the bulb. You can only go once
Turn on one switch, wait for a while, then turn it off and turn on another switch. The switch left on is the one connected to the bulb.
Turn on switch 1 and leave it on for a few minutes
Turn off switch 1 and turn on switch 2
Go to the room with the bulb, the switch left on is the one connected to the bulb
Q4. Why stringreverse possible only in macro?
String reverse is possible in VBA macros because VBA provides built-in functions and methods to manipulate strings.
VBA macros have access to the VBA string manipulation functions like Mid, Left, Right, and Len.
VBA macros can use loops and conditional statements to reverse a string character by character.
VBA macros can also utilize the Split function to split a string into an array of characters and then reverse the array.
VBA macros can easily convert a string into an array of...read more
Q5. Different types of Excel formulas, Conditions
Excel formulas can be categorized into mathematical, logical, text, date/time, and lookup/reference formulas.
Mathematical formulas perform arithmetic operations like addition, subtraction, multiplication, and division.
Logical formulas evaluate conditions and return TRUE or FALSE.
Text formulas manipulate text strings.
Date/time formulas perform calculations with dates and times.
Lookup/reference formulas retrieve data from a specific cell or range.
Examples: SUM, IF, CONCATENATE,...read more
Q6. 1) Libraries required for predictive model building?
Libraries such as scikit-learn, TensorFlow, and Keras are commonly used for predictive model building.
scikit-learn
TensorFlow
Keras
Share interview questions and help millions of jobseekers 🌟
Q7. write a vba code convert 2/2/2022 in text
Use VBA code to convert 2/2/2022 into text format.
Use the Format function in VBA to convert the date into text.
Specify the desired format within the Format function.
Example: Format(#2/2/2022#, "mmmm d, yyyy") will convert 2/2/2022 to February 2, 2022.
Q8. What is custom function in VBA
A custom function in VBA is a user-defined function that performs a specific task or calculation.
Custom functions are created by the user to extend the functionality of Excel or other Office applications.
They can be used to perform complex calculations, manipulate data, or automate tasks.
Custom functions are written in VBA code and can be called from within Excel formulas.
For example, a custom function could be created to calculate the average of a range of cells or to format...read more
VBA Developer Jobs
Q9. Explain about Userform and modules
Userform is a graphical interface for users to interact with data, while modules are containers for VBA code.
Userform allows for creating custom forms with input fields, buttons, etc.
Modules are used to store VBA code that can be called from other parts of the program.
Userform can be used to collect user input and display information in a visually appealing way.
Modules can contain functions, subroutines, and variables that can be accessed throughout the VBA project.
Q10. sum and count formula
The SUM formula adds up a range of numbers, while the COUNT formula counts the number of cells that contain numbers.
Use SUM formula to add up a range of numbers, like =SUM(A1:A10)
Use COUNT formula to count the number of cells that contain numbers, like =COUNT(A1:A10)
You can also combine these formulas, like =SUM(A1:A10) + COUNT(B1:B10)
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month