VBA Developer

VBA Developer Interview Questions and Answers

Updated 27 Aug 2024
search-icon

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 more
Ans.

Explaining 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

Ans.

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

Ans.

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?

Ans.

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

Are these interview questions helpful?

Q5. Different types of Excel formulas, Conditions

Ans.

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?

Ans.

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 🌟

man-with-laptop

Q7. write a vba code convert 2/2/2022 in text

Ans.

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

Ans.

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

Power Automation & VBA Developer 3-9 years
Systechcorp Inc
4.4
Kolkata
REF52364G_202496204 - VBA developer - 3 To 6 years - Pune 6-9 years
Vuram Technology Solutions Pvt Ltd
4.2
Pune
Vba Developer 3-5 years
Manpowergroup Services India
0.0
₹ 8 L/yr - ₹ 12 L/yr
Bangalore / Bengaluru

Q9. Explain about Userform and modules

Ans.

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

Ans.

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 Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.9
 • 3k Interviews
3.4
 • 961 Interviews
3.7
 • 721 Interviews
3.3
 • 164 Interviews
3.1
 • 69 Interviews
View all

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

VBA Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter