InputBox Function in Excel VBA
Last Updated :
30 Aug, 2023
Input Box is one of the most frequently used functions in VBA Macro. The dialogue box that appears asks for input from the user and returns a constant/code/number/text. For example, if you want to create a log-in form in VBA, you will require an input box function. Let's learn how to create an input box in VBA.
InputBox Function
Input Box is a dialogue box that helps users to take value, and do later computations according to the entered value. The input box is similar to the message box, but the message box is used to display the data while the input box is used to enter the data. By default, a message box shows only the OK button in its dialogue box but the input box shows both the OK and Cancel buttons in its dialogue box. You can choose the return type of the data to be entered. The automated data analysis includes entering and displaying the data, which can be achieved if we are using the input box and message box simultaneously.
Syntax: InputBox(prompt[,title][,default][,xpos][,ypos][,helpfile, context])
Temporary and Permanent Arguments in Input Box
Arguments of the Input box, help customize your input box by changing the title, fixing the position, adding help buttons, etc. In total, eight(8) arguments can be passed in the input box. Out of which one(1) is the permanent argument, and leftover seven(7) are the temporary arguments.
Here is the list of all arguments used by the Input box.
|
Data Type | Title |
| Default |
| X-Position |
| Y-Position |
| Helper |
| Context ID |
| Prompt |
Parameter Description
Prompt :
This parameter is a string that serves as the message displayed within the dialog box. The message can contain up to approximately 1024 characters. If the message spans multiple lines, you can separate the lines using either the carriage return character or the linefeed character.
Title:
This parameter is also a string expression that appears in the title bar of teh dialog box. If you leave this parameter empty, the title bar will display the name of the application.
Default:
Here, you can provide a default text that will be pre filled in the text box of the dilaog box. Users have the option to accept or modify this default text.
XPos:
This numeric parameter represents the X -axis position of the dialog box. It determines how far the dialog box should be positioned from the left said of teh screen horizontally. If left blank, the input box will be centered horizontally.
YPos:
Similar to XPOs, YPOs determine the Y-axis position of the dialog box. It specifies the distance of the dialog box from the top of the screen vertically. If left blank, the input box will be centered vertically.
Helpfile:
If you want to provide context-sensitive help for the dialog box, you can use this parameter. Provide a string expression that identifies the Helpfile to be used .
Context:
This numeric expression is used to indicate the Help context number assigned by the help author to the relevant help topic. If you provide this parameter, you must also provide the Helpfile parameter.
VBA is smart enough to give you a list of temporary and permanent arguments. Following are the steps:
Step 1: Create a Procedure
Open your VBA editor. Create a procedure named geeks(). Use InputBox, function, as soon as you start the parenthesis for the function, a list automatically appears on your screen.
Create procedure and use inputbox functionStep 2: List Generated will Give Arguments
The list tells the order of arguments. The argument written in bold and without a square[ ] parenthesis are permanent arguments, while the arguments written without a square[ ] parenthesis are temporary arguments.
Arguments givenArguments in Input Box
Now, we are going to understand every argument in detail, with examples.
Argument 1: Prompt
Prompt is the definition for the input box, according to which understanding the user enters the data. Prompt is a required argument. If this argument is not provided, then the VBA might show an error. The prompt returns a string. For example, display the "Enter Your Name" prompt in the input box.
Following are the steps
Step 1: Declare a Variable
Declare a variable to store the input data in the input box. For example, name. Use the InputBox function. Write InputBox("Enter Your Name") and store this in the variable name.
Declare a variableStep 2: Run Macro
Run your macro. You can see the input box appears on the screen, with the prompt "Enter Your Name".
Run macroArgument 2: Title
The second argument provided to the input box is the title. The title is the heading of an input box. It is a temporary argument. The default data type of a title is variant. If a custom title is not mentioned, then the default title is "Microsoft Excel". For example, display "geeks for geeks" as the title of your input box.
Following are the steps
Step 1: Open VBA Editor and Create Sub Procedure
Open your VBA editor. Create a sub-procedure called geeks(). Use the InputBox function. The argument 1 of the input box function is the prompt text; it is the same as done in previous examples. The second argument is the title of your input box i.e. "geeks for geeks". Store the input box function in the variable Name.
Create sub procedureStep 2: Run Macro
Run your macro. An input box is shown on the screen. You can see the title of the input box is "geeks for geeks".
Run MacroArgument 3: Default
The third argument provided to the input box is the "default". The "default" is the initial text box value. There can be situations when a user might not enter any data. At that time, the variable used to store the data remains empty. This may cause errors in the code, to remove this breakpoint we can add a default value in the custom text box. It is a temporary argument. The default data type of "default:" is variant. If a custom "default" is not mentioned, then the text box has no value. For example, display "geeks" as the default value of your text box.
Argument 3: DefaultFollowing are the steps
Step 1: Open VBA Editor and Create Sub Procedure
Open your VBA editor. Create a sub-procedure name geeks(). The first two arguments of the input box are the same as the above example. The third argument is the custom text box value i.e., "geeks". Store the input box function in the variable Name.
Open VBA and create sub procedureStep 2: Run Macro and Check Default Value
Run your macro. An input box is shown on the screen. You can see the default value of the text box is "geeks".
run macro and check default valueArgument 4 and Argument 5: XPos and YPos
The fourth argument is X- Position(Xpos) and the fifth argument is Y-Position(YPos). Both are the positional arguments provided to set the location of your input box with respect to the home screen of excel. They are temporary arguments. The default data type is variant. For example, XPos as 2000 and YPos as 10000 in the input box.
Following are the steps
Step 1: Open VBA Editor and Create Sub Procedure
Open your VBA editor. Create a sub-procedure name geeks(). The first three arguments of the input box are the same as the above example. The fourth argument is a numeric value of 2000, and the fifth argument is 10000. Store the input box function in the variable Name.
Open VBA Editor and create sub procedureStep 2: Run Macro
Run your macro. You can analyze the position of the input box, it has gone to the end of the worksheet. The X and Y positions can be changed accordingly.
Run MacroArgument 6 and Argument 76: HelpFile and HelpContext
A HelpFile is provided by the author for resolving errors or to guide how to fill the input box. A HelpFile is called when a user clicks on the help button in the input box. Whenever you are providing a HelpFile, you also need to mention the context ID, which specifies the number of the help topic in the HelpFile. If no HelpFile is specified, then a visual basic file is displayed. You will rarely use, HelpFile and HelpContextId in the input box.
Both HelpFile and Context are optional arguments and have data types as variants. The file used by Context is the .hlp file. You might not get a suitable example on the help file and context as they are generally provided by the author or by the VBA community itself.
Argument 8: Data type
The eighth argument of the input box function is a data type. It is a temporary argument and is not present in the default input box function. Yes, here is the catch, the VBA input box function does not provide a type argument, but an excel specific souped-up provides Application.InputBox function, which has an eighth(8th) data type called type. The type argument is very useful to limit the user's access to the data. The data type is mentioned in the form of a number. For example, if you want to enter your age in the input box, you will never require text, so this could be limited by type argument.
Type not present
Type presentHere is the list provided by Microsoft to refer to the data type numeric value:
|
0 | Formula |
1 | Number |
2 | Text |
4 | Boolean |
8 | Range Object |
16 | error(#N/A) |
64 | Array |
How to Use Input Box in a VBA Code
Follow the below steps to use Input Box
Step 1: Open VBA Editor and Create Sub-procedure >Use Application.InputBox() function
Open your VBA editor. Create a sub-procedure name geeks(). Use Application.InputBox() function to access the type argument. Store the result in the variable age. Print the age variable in the immediate window. As you have passed data type as 1, you can only enter numbers in the input box. Run your Macro.
Open VBA Editor and create sub procedureStep 2: Error Message Displayed
Now, if you try to enter a text in the input box, then it will show an error.
ErrorStep 3: Dilog Box Popped Up
A new dialogue box appears, named Microsoft Excel, which specifies you cannot enter a text in the input box.
Dilaog box showing messageStep 4: Enter Number and Error Removed
Now, if you enter a number, for example, 19, click Ok. It won't show any error.
Enter numberStep 5: Number is Printed
The number 19 is printed in the immediate window.
Number printedSkipping the Arguments
There can be a probability that you don't want all the arguments to be added to your input box function. For example, you generally do not require help files and help context arguments, but you want to add a data type argument in the input box. This issue can be solved by skipping the arguments. There are two most used ways to skip arguments in a function.
Method 1: Use (comma) to skip Arguments
The comma (,) is used to skip the arguments in the function. For example, you want to add the prompt "Enter your name" and default value "Arushi", but want to skip the temporary argument title.
Following are the steps
Step 1: Open VBA Editor
Open your VBA editor. Write Application.InputBox("Enter your name", , "Arushi"), an empty comma(,) will skip the second argument title.
open VBA EditorStep 2: Run Macro
Run your macro. You can see that the default title appears in the input box i.e., "Input". You have successfully skipped the title argument.
Run MacroMethod 2: Specifying the argument name
You can mention the name-specific arguments. For example, you want to add the prompt "Enter your name" and default value "Arushi", but want to skip the temporary argument title.
Example
Step 1: Open VBA Editor and Write Application.InputBox()
Open your VBA editor. Write Application.InputBox(Prompt := "Enter your name", Default := "Arushi"), using argument_name := specifies the argument to be added in the input box.

Step 2: Run Macro
Run your macro. The prompt "Enter your name", with the default "Arushi", is displayed in the input box.
Similar Reads
MS Excel Tutorial - Learn Excel Online Free Excel, one of the powerful spreadsheet programs for managing large datasets, performing calculations, and creating visualizations for data analysis. Developed and introduced by Microsoft in 1985, Excel is mostly used in analysis, data entry, accounting, and many more data-driven tasks.Now, if you ar
11 min read
Excel Fundamental
Introduction to MS ExcelMicrosoft Excel, a versatile spreadsheet tool from the Microsoft Office suite that organises data into rows and columns. Whether weâre managing budgets, creating charts, or analysing datasets, Excel helps us handle tasks efficiently. For example, we can list project tasks, calculate totals, and visu
5 min read
Download and Install MS Excel 2024/365 EditionMicrosoft Excel is a tool for data management, reporting, and calculations, widely used by students, professionals, and businesses. The 2024/365 edition offers enhanced features, cloud integration, and improved performance across devices. 1. Downloading Excel 2024/365 on PC or MacExcel is part of Mi
4 min read
Excel SpreadsheetAn Excel spreadsheet, called a workbook, contains one or more worksheets, each a grid of 1,048,576 rows and 16,384 columns for data management. Workbooks organize related data across multiple worksheets in a single file.1. Understanding Excel Workbooks and WorksheetsWorkbook: A single Excel file con
4 min read
Workbooks in Microsoft ExcelA collection of worksheets is referred to as a workbook (spreadsheets). Workbooks are your Excel files. You'll need to create a new workbook every time you start a new project in Excel. There are various ways to begin working with an Excel workbook. You can either start from scratch or use a pre-des
4 min read
Worksheets in ExcelA worksheet is a single spreadsheet in Excel, made up of a grid of rows and columns where data can be entered, calculated, and organized. Each worksheet contains cells where you input text, numbers, or formulas. Worksheets are the main area where work is done in Excel, and multiple worksheets can be
4 min read
Workbooks in Microsoft ExcelA collection of worksheets is referred to as a workbook (spreadsheets). Workbooks are your Excel files. You'll need to create a new workbook every time you start a new project in Excel. There are various ways to begin working with an Excel workbook. You can either start from scratch or use a pre-des
4 min read
Delete All Rows Below Certain Row or Active Cell in ExcelExcel is a tool for storing, analyzing, and creating reports on large datasets. It's widely used by accounting professionals for financial data analysis but is efficient enough for anyone managing large amounts of data. However, dealing with unnecessary rows can clutter our worksheet. Deleting all r
5 min read
Remove Hyperlinks in ExcelHyperlinks in Excel can be useful for navigating to websites, files, or other locations within a workbook, but unwanted hyperlinks can clutter our worksheet. The HYPERLINK function creates a shortcut that opens a document on a server, the internet, or another location in the workbook.Syntax:HYPERLIN
6 min read
How to Use Fractions in ExcelMicrosoft Excel is a powerful tool for managing numbers, but did you know it can also handle fractions just as smoothly as decimals and whole numbers? If you are a newbie working with data where you need to use fractions, then this guide on how to use fractions will guide you on the practical ways t
6 min read
Excel Formatting
Data Formatting in ExcelData formatting in Excel is the key to transforming raw numbers into clear, professional, and actionable insights. From customizing dates and currencies to applying conditional formatting for quick analysis, mastering these techniques saves time and enhances your spreadsheetsâ impact. This guide wil
3 min read
Expand Cells to Fit the Text Automatically in ExcelExcel is a tool for managing tabular data, but entering lengthy text can create display issues. Expanding cells to fit text automatically saves time and keeps spreadsheets clean and professional.1. Why Expand Cells in Excel?Expanding cells in Excel is essential for improving the readability, profess
3 min read
Excel Date and Time FormatsExcel stores dates as serial numbers starting from January 1, 1900 (serial number 1), and times as decimal fractions of a day (e.g., 12:00 PM = 0.5). Proper formatting ensures accurate display and calculations.1. Key ConceptsDates: Stored as sequential numbers (e.g., January 1, 2025 = 45658).Times:
3 min read
Insert a Picture in a Cell in MS ExcelInserting images into Excel cells enhances data visualization for dashboards, reports, and catalogs. By embedding images directly into cells, they move, resize, and sort with our data, ensuring a professional and organized spreadsheet.Step-by-Step Guide to Insert a Picture into a Cell1.1. Inserting
2 min read
How to Unhide and Show Hidden Columns in Excel: Step by Step GuideThere are lots of times when you need to hide certain columns on a temporary basis so you can focus on the specific data. But knowing how to unhide the hidden columns is also important if you want to work on the hidden data again. This complete guide on how to unhide hidden columns in Excel will wal
9 min read
Conditional Formatting in ExcelWe use conditional formatting in Excel to highlight important data based on specific rules. This feature applies colors or styles to cells, helping us spot trends or key values in our spreadsheets effortlessly.We can enhance our data presentation with these practical methods. Letâs explore how to ap
8 min read
Apply Conditional Formatting Based On VLookup in ExcelVLOOKUP is an Excel function to look up data in a table organized vertically. VLOOKUP supports approximate and exact matching and wildcards (* ?) for partial matches.Conditional Formatting Based on VLOOKUP:1. Using the Vlookup formula to compare values in 2 different tables and highlighting those va
3 min read
How to Compare Two Columns and Delete Duplicates in ExcelFacing redundant data in your Excel and don't know how to compare two columns so you can easily de-duplicate Excel? Explore this guide to get the step-by-step instructions to compare two columns and delete duplicate data. Here you will learn multiple ways, like the equal operator, IF() function, and
3 min read
How to Find Duplicate Values in Excel Using VLOOKUPExcel is a great tool for working with data. One of its handy features is the VLOOKUP function, which helps you find matching or duplicate values in your data. In this article, weâll show you how to use VLOOKUP to spot duplicates in a simple way. Youâll learn how to compare two columns in one sheet,
3 min read
Excel Formula & Function
Basic Excel FormulasWe can make Excel work smarter for us with simple formulas that handle our numbers fast! Whether weâre adding up vegetable costs with =SUM(A1:A5) or finding the average with =AVERAGE(B1:B10), these handy tools help us with budgeting and figuring things out. Letâs get started and learn them together!
3 min read
Use of Concatenate in ExcelThe CONCAT function combines multiple text strings or cell values into one string, supporting dynamic data merging.Syntax:=CONCAT(text1, [text2],)Parameters:text1, text2, ...: The text strings, numbers, or cell references to combine (up to 255 arguments).Note: In older Excel versions, use CONCATENAT
5 min read
Percentage in ExcelExcelâs percentage calculations are vital for data analysis, used by 90% of businesses to track metrics like sales growth or expenses. Calculating percentages is straightforward with formulas like (Part/Whole)*100, such as =A1/B1*100, where A1 is the Part and B1 is the Whole. Excel also offers built
8 min read
Excel LEFT, RIGHT, MID, LEN, and FIND FunctionsLEFT Function in ExcelThe LEFT function returns a given text from the left of our text string based on the number of characters specified.Syntax:LEFT(text, [num_chars])Parameters:Text: The text we want to extract from. Num_chars (Optional): The number of characters we want to extract. Default num_ch
5 min read
Excel IF FunctionExcelâs IF function is a versatile formula that performs logical tests, returning one value if a condition is true and another if false. With its clear syntax, itâs ideal for checking criteria and can be combined with other functions for complex formulas.1. Excel IF Statement The IF function evaluat
10 min read
Excel VLOOKUP FunctionThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.Syntax of VLOOKUP Formula:VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]
12 min read
Dynamic Array Formulas in ExcelDynamic arrays are resizable arrays that calculate automatically and return value into multiple cells based on a formula entered in a single cell. The new array (multiple cells) that we get is known as spilling and the new array has been placed in neighboring cells. It is not necessary to use Ctrl +
2 min read
COUNTIF Function in Excel - Step by Step TutorialExcelâs COUNTIF function is a tool for counting cells that meet specific criteria, streamlining data analysis for tasks like tracking metrics or filtering results. The function, with its simple syntax COUNTIF(range, criteria), counts cells in a specified range based on conditions like text, numbers,
7 min read
How To Use MATCH Function in Excel (With Examples)Finding the right data in large spreadsheets can often feel like searching for a needle in a haystack. This is where the MATCH function in Excel proves invaluable. The MATCH function helps you locate the position of a specific value within a row or column, making it a cornerstone of efficient data m
6 min read
Excel Data Analysis & Visualization
How to Sort by the Last Name in Excel?When you work on excel you'll probably be assigned a task to sort data alphabetically in ascending or descending order and it is quite an easy task to sort data using the first names in either of the order. It is the easiest task to be done in excel. But what if you are given a task to sort a list o
5 min read
How to Sort Data by Color in Excel?Sorting Data By Color allows us to segregate the data cells of a specific color. There can be many ways to sort by color like sorting by Cell color, sorting by Font color, etc. We can also add multiple levels in sorting data by color. Sorting by Color makes analysis very easy and time-saving. Sort b
3 min read
How to Swap Columns in Excel: 3 Methods ExplainedTo Swap Columns in Excel - Quick StepsDrag and Drop: Select a column, drag it to a new position, and release.Cut and Paste: Cut a column (Ctrl + X) for Windows and (Cmd + X) for Mac, then paste it in the new location using Insert Cut Cells.Copy and Paste: Copy a column, then insert the copied cells
8 min read
Sparklines in ExcelSparklines are miniature charts embedded within a single Excel cell. They visually summarize trends, patterns, or data fluctuations, making them ideal for dashboards and compact reports. Unlike traditional charts, sparklines are not separate objects; they exist inside the cell itself, behaving like
8 min read
Pivot Tables in ExcelPivot Tables in Excel are an efficient tool for summarizing, analyzing and organizing large datasets. They enable us to group, filter and perform calculations (e.g., sums, averages) on data using a flexible, drag-and-drop interface, transforming raw data into actionable insights without complex form
3 min read
How to Sort a Pivot Table in Excel : A Complete GuideSorting a Pivot Table in Excel is a powerful way to organize and analyze data effectively. Whether you want to sort alphabetically, numerically, or apply a custom sort in Excel, mastering this feature allows you to extract meaningful insights quickly. This guide walks you through various Pivot Table
7 min read
Pivot Table Slicers in ExcelInserting a Pivot Table Slicer in Excel means adding a visual filter to a Pivot Table, allowing users to quickly and interactively filter data. Slicers use buttons to display specific subsets of data, improving clarity, ease of use, and overall data exploration across one or more Pivot Tables.How to
6 min read
Data Visualizations in Power ViewData visualization is a technique to represent the data or set of information in charts. Excel gives a tool of Power View where we can explore the data interactively and also we can visualize the data such that data can be presented in Tables, Bar charts, Scatter plots, and Pie charts. This tool can
3 min read
Chart Visualizations in Excel Power ViewPower View is an Excel Visualization tool that allows you to build visually appealing graphs and charts, dashboards for management, and reports that can be issued daily, weekly, or monthly. When we think of Microsoft Excel, we think of various tools such as Formulae, which makes an analyst's job sim
8 min read
Table Visualization in Excel Power ViewFor whatever visualization we decide to make with Power View, we start by generating a Table, which is the default, and then quickly convert the Table to other visualizations. The Table is formatted similarly to any other data table, with columns representing fields and rows representing data values
5 min read
Multiple Visualizations in Excel Power ViewPower View allows for interactive data exploration, visualization, and presentation, promoting easy ad hoc reporting. Power View's flexible visuals enable on-the-fly analysis of large data sets. The data visualizations are dynamic, making it easier to show the data with a single Power View report. M
4 min read
Dynamic Excel Dashboards Using PicklistsDashboards are a report technique that visually presents critical metrics or a data summary to allow for quick and effective business decisions. Excel is capable of handling complex statistical calculations, many of which are built-in as Functions and can be easily displayed on a dashboard. Excel da
3 min read
Advanced Excel
How to Use Solver in Excel?A solver is a mathematical tool present in MS-Excel that is used to perform calculations by working under some constraints/conditions and then calculates the solution for the problem. It works on the objective cell by changing the variable cells any by using sum constraints. Solver is present in MS-
3 min read
Power Query â Source Reference as File Path in CellPower query helps in doing automation in an efficient manner. It allows users to utilize files stored in specific locations and apply routine transformation steps on those files. It allows users to embed file paths and file sources in an Excel cell. The end user can make use of named ranges and Exce
2 min read
How to Create Relational Tables in Excel?Excel directly doesn't provide us ready to use a database, but we can create one using relationships between various tables. This type of relationship helps us identify the interconnections between the table and helps us whenever a large number of datasets are connected in multiple worksheets. We ca
4 min read
How to Import, Edit, Load and Consolidate Data in Excel Power Query?Power Query is an easy and efficient way of solving simple data tasks. Most of our valuable time is frequently consumed by tedious manual procedures like cut and paste, column merging, and filtering. These operations are greatly simplified with the Power Query tool. A further advantage is that, in c
8 min read
Connecting Excel to SQLiteA tiny, quick, self-contained, highly reliable, fully-featured serverless, zero-configuration, transactional SQL database engine is implemented by SQLite, an in-process C language library. The most popular database engine worldwide is SQLite. The public domain status of SQLite's source code allows f
4 min read
Handling Integers in Advanced ExcelA table can be converted into a chart with the help of a power view where one column of data has to be aggregated. Power View can aggregate both integer and decimal numbers. We can also aggregate the data models by other default behavior. Power View provides Power View Fields where the sigma symbol
2 min read
Power Pivot for ExcelPower Pivot serves as an Excel add-on enabling robust data analysis and the creation of advanced data models. This tool facilitates the integration of extensive data from diverse sources, enabling swift information analysis and seamless sharing of insights. Whether working in Excel or Power Pivot, u
10 min read
Excel Power Pivot - Managing Data ModelPower Pivot is something that helps us in relating between two different data sets which are in two different worksheets. We can manage and relate any type of data using Power Pivot. It is used for data analysis and creates many different data models. we can collect large data from different sheets
6 min read
Table and Chart Combinations in Excel Power PivotFor data exploration, visualization, and reporting, Power Pivot offers a variety of Power PivotTable and Power PivotChart combinations. A Power PivotChart is a PivotChart that was made using the Power Pivot window and is based on the Data Model. Despite sharing certain functionality with Excel Pivot
3 min read
Excel Data Visualization
Advanced Excel - Chart DesignThe charts are the visual representation of data in both rows and columns. They are used to analyze the trends and patterns in the datasets. For example, If we want to analyze the sales of different courses for a specific period of time we can easily do this with the help of charts and get the resul
4 min read
How to Create a Graph in Excel: A Step-by-Step Guide for BeginnersAnyone who wants to quickly make observations and represent them graphically should know how to create graphs with Excel. Whether it is the preparation of business analysis papers, academic research documents or financial reports among other things, learning how to make graphs in Excel can significa
8 min read
Formatting Charts in ExcelOne of the major uses of Excel is to create different types of charts for a given data set. Excel provides us with a lot of modification options to perform on these charts to make them more insightful. In this article, we are going to see the most common "Formatting" performed on charts using a suit
3 min read
How to Create a Waterfall Chart in Excel Waterfall charts are a powerful visualization tool used to illustrate the cumulative effect of sequential data points, such as profits, losses, or changes over time. Widely used in financial and performance analysis, these charts provide clear insights into the contributions of individual components
6 min read
Scatter and Bubble Chart Visualization in ExcelScatter Charts and Bubble Charts display many related data in one Chart. In both of these charts, the X - axis displays one numeric field and the Y-axis displays another. It helps to specify the relationship between two values for all the items in the chart easily. In Bubble charts, a third numeric
5 min read
Create a Pie Chart in ExcelA pie chart in Excel is a circular graph divided into slices, where each slice shows a category's proportion of the total. Ideal for displaying percentages like budget breakdowns or survey results, pie charts simplify complex data. Note: Verify our data accuracy to prevent misleading charts.1. Pie C
5 min read
How To Create A Pictograph In Excel?The Pictograph is the record consisting of pictorial symbols. Generally, in mathematics, it is represented by the help of graphs with pictures or icons representing certain quantities or numbers of people, books, etc. It is also known as pictogram, pictogramme, pictorial chart, picture graph, or sim
3 min read
How to make a 3 Axis Graph using Excel?3 Axis Graphs in Excel are the graphs that have three axis. The need for a three-axis arises when the scale of the values is very different. For example, you are given an atom and you want to make a graph between its diameter, melting point, and colloidal nature. If they are plotted on the same scal
7 min read
How To Create a Tornado Chart In Excel?Tornado charts are a special type of Bar Charts. They are used for comparing different types of data using horizontal side-by-side bar graphs. They are arranged in decreasing order with the longest graph placed on top. This makes it look like a 2-D tornado and hence the name. Creating a Tornado Char
2 min read
How to Create Flowchart in Excel: Step-by-Step GuideA Flowchart is a valuable tool for visualizing processes, workflows, or decision-making paths, making it easier to communicate ideas and identify improvements. This article provides a clear, step-by-step guide on how to create a Flowchart in Excel, using its shapes and formatting tools to design cus
6 min read
Excel VBA & Macros
How to Insert and Run VBA Code in Excel?In Excel VBA stands for (Visual Basic for Application Code) where we can automate our task with help of codes and codes that will manipulate(like inserting, creating, or deleting a row, column, or graph) the data in a worksheet or workbook. With the help of VBA, we can also automate the task in exce
2 min read
Variables and Data Types in VBA ExcelIn a computer system, variables and data types are almost used in every program to store and represent data. Similarly, Excel VBA also has variables and data types to store and represent data and its type. In this article, we will learn about VBA variables, their scope, data types, and much more. VB
9 min read
How to Use the VBA Editor in Excel: Quick Guide 2024Unlock the full potential of Microsoft Excel by diving into the world of Visual Basic for Applications (VBA). The VBA Editor in Excel is a powerful tool that allows you to automate tasks, create custom functions, and streamline your workflow like never before. Whether you're looking to boost product
7 min read
VBA Strings in ExcelIn Excel's Visual Basic for Applications(VBA), strings are pivotal in handling and manipulating text-based data. Strings serve as a fundamental data type used to store a sequence of characters, enabling the representation of textual information, numbers, symbols, and more. Understanding how VBA hand
8 min read
VBA Find Function in ExcelIn an Excel sheet subset of cells represents the VBA Range which can be single cells or multiple cells. The find function will help to modify our search within its Range object. A specific value in the given range of cells is to search with the help of the Find function. Excel VBA provides different
5 min read
ActiveX Control in Excel VBAWhen we are automating an excel sheet with VBA at that time when the user has a requirement for a more flexible design then it's better to use ActiveX Controller. In Excel user has to add the ActiveX Controller manually and ActiveX Controls are used as objects in codes. There are the following types
3 min read
Multidimensional Arrays in Excel VBAMultidimensional Arrays are used to store data of similar data types of more than one dimension. A multidimensional array has a dimension up to 60 but usually, we don't use arrays of dimensions more than 3 or 4. Here, we will see how to declare a multidimensional array in many ways and also how to c
2 min read
VBA Error HandlingIn a VBA code, there may be some errors like syntax errors, compilation errors, or runtime errors so we need to handle these errors. Suppose there is a code of 200 lines and the code has an error it's very difficult to find an error in the code of 200 lines so it's better to handle the error where w
10 min read
How to Remove Duplicates From Array Using VBA in Excel?Excel VBA code to remove duplicates from a given range of cells. In the below data set we have given a list of 15 numbers in âColumn Aâ range A1:A15. Need to remove duplicates and place unique numbers in column B. Sample Data: Cells A1:A15 Sample Data Final Output: VBA Code to remove duplicates and
2 min read
Macros In Excel With Examples: Step-by-Step TutorialExcel macros are a powerful tool that can automate repetitive tasks, saving you time and increasing productivity. Whether you're trying to enable Excel macros, record a macro in Excel, or automate specific actions within your spreadsheet, macros are an invaluable feature. In this guide, we will walk
11 min read
Assigning Excel Macro to ObjectsIn Excel, a recorded macro can be assigned to different objects like a shape, graphic, or control note. Instead of running the macro from the required tool in ribbon, we can create these objects to run them easily. They get very handy when multiple macros are there. Individual objects can be created
3 min read
How to Enable Macros in Excel (2025): Step-by-Step GuideHow to Activate Macros in Excel - Quick StepsOpen the Excel workbook.Click Enable Content in the yellow security warning bar.Go to File > Options > Trust Center > Trust Center Settings > Macro Settings.Choose the desired macro setting (e.g., Enable All Macros for trusted files).Save the
9 min read
Power BI & Advance Features in Excel