VBA Developer

10+ VBA Developer Interview Questions and Answers

Updated 5 Jul 2025
search-icon

Asked in WNS

2d ago

Q. 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.

Asked in EXL Service

5d ago

Q. There are three switches and one bulb in another room. You need to determine which switch turns on the bulb, but you can only enter the room with the bulb once. How do you solve this?

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

4d ago

Q. Write a program to demonstrate your understanding of programming structures.

Ans.

Understanding programming structures is crucial for effective coding and problem-solving in VBA development.

  • 1. Control Structures: Use If...Then...Else for conditional execution. Example: If x > 10 Then MsgBox 'Greater than 10'.

  • 2. Loops: Implement For...Next or Do...Loop for repetitive tasks. Example: For i = 1 To 10: MsgBox i: Next i.

  • 3. Functions: Create reusable code blocks with Function/Sub procedures. Example: Function Add(a As Integer, b As Integer) As Integer.

  • 4. Error H...read more

2d ago

Q. How do 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

Are these interview questions helpful?
5d ago

Q. Why is string reversal only possible in macros?

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

4d ago

Q. 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

VBA Developer Jobs

WNS GLOBAL SERVICES PRIVATE LIMITED logo
VBA Developer (4-6 yrs)_Chennai_CBD 3-6 years
WNS GLOBAL SERVICES PRIVATE LIMITED
3.3
Chennai
Evalueserve.com Pvt. Ltd logo
VBA Developer - Engineer 1-3 years
Evalueserve.com Pvt. Ltd
3.1
Gurgaon / Gurugram
Diverse Lynx logo
VBA DEVELOPER 3-8 years
Diverse Lynx
3.6
Pune

Asked in Ascendion

1d ago

Q. 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

6d ago

Q. Write a VBA code to convert 2/2/2022 into 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.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
1d ago

Q. What is a 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

3d ago

Q. 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.

1d ago

Q. How do you use the SUM and COUNT formulas in VBA?

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 Experiences of Popular Companies

Genpact Logo
3.7
 • 3.4k Interviews
WNS Logo
3.3
 • 1.1k Interviews
EXL Service Logo
3.7
 • 805 Interviews
Chetu Logo
3.3
 • 198 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

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
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

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

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits