Search TeachExcel.com
TeachExcel.com
TE
Teach Excel MS Office Tutorials Excel Consulting Services Excel Forum
Excel Video Tutorials Excel Tips Free Excel Macros Excel Help Resources Contact TeachExcel
Macros

Bookmark and Share
Excel Macros Categories
  • Not Yet Categorized
  • Data Analysis Macros in Excel
    - Filtering, Sorting, etc.
  • Queries in Excel
    - Import Data from the Web, CSV Files, Text Files, etc.
  • Email and Microsoft Outlook Macros in Excel
  • Charts and Graphs Macros in Excel
  • Formatting Macros in Excel
  • Data Validation Macros in Excel
    - Drop Down Menus, Lists, Input Messages, etc.
  • UDF - User Defined Functions in Excel
  • Deleting Rows and Columns in Excel
    -Deleting Duplicates, Empty Rows, Empty Columns, Etc.
  • Worksheet Area Related Macros in Excel
    - Comments, Cells, Appearance, etc.
  • Time Related Macros in Excel
    - Run Macros at a Certain Time, Specific Intervals, etc.
  • Printing Macros in Excel
Data Analysis Macros in Excel
Top
    Bubble Sort
    - This macro will perform a bubble sort in excel. You use it simply by selecting one column to sort and then running the macro.
    Sort Worksheet Tabs - Ascending or Descending Order
    - This macro will sort all of the worksheets in the current workbook. It can sort in ascending or descending order. This will work to sort by
    Reverse Row or Column Order in a Worksheet
    - This macro reverses the order of a selected row or column in excel. It will completely reverse the data.
    Reverse Cell Contents (Mirror)
    - This macro will completely reverse the contents of any cell. This means that if you have a cell which reads "My Text" and you run th
    Filter Data to Display the Results that Begin With Specified Text or Words in Excel - AutoFilter
    - This Excel macro automatically filters a set of data based on the words or text that are contained in the beginning of the cell. This uses
    Filter Data to Show Only the Bottom 10 Items in Excel - AutoFilter
    - This Excel macro filters a selection of data in order to display only the bottom 10 items in the list or data set. This uses the autofilter
    Filter Data to Show the Bottom 10 Percent of a Data Set in Excel - AutoFilter
    - This free Excel macro filters a data set to display the bottom 10 percent of the data set in Excel. This is a great macro for data analysis
    Filter Data to Show the Bottom X Number of Items in Excel - AutoFilter
    - This free Excel macro filters a data set to show the bottom X number of items from that data set. This macro is really great because you ca
    Filter Data to Show the Bottom X Percent of the Data Set in Excel - AutoFilter
    - This free Excel macro filters data to display the bottom X percent of the data set in Excel. This is a great macro to use when you need to
    Display Filter Arrows in a Table or Data Set in Excel - AutoFilter
    - This free Excel macro allows you to apply filter settings to a data set, list, or range of data in Excel. This will not actually filter the
    Filter Results in Excel to Show Only Those that End With Specified Text or Words - AutoFilter
    - This free Excel macro filters data to display results that end with certain words, text, or characters. This is a very easy to use and help
    Filter Data in Excel - AutoFilter
    - This free Excel macro filters data in Excel using the autofilter feature in an Excel macro. To use this macro all you need to do
    Filter Data in Excel to Show Rows/Data That Meet Multiple Criteria for One Field - AutoFilter
    - This free Excel macro filters data in Excel based on multiple criteria for one field in the data set. This macro uses the autofilter featur
    Filter Data in Excel to Display Records that Contain a Value Between Two Values - AutoFilter.
    - This free Excel macro filters data to display only those records or rows that contain a value between two values. For example, you could di
    Filter Data Sets on Multiple Columns with Multiple Criteria at Once in Excel - AutoFilter
    - This Excel macro allows you to filter a data set on multiple columns and criteria at once. This means that you can filter the data based on
    Filter Data in Excel Without the Filter "Arrow" Appearing in the Filtered Column - AutoFilter
    - This Excel macro filters data in Excel without the filter "arrow" appearing in the column that is being filtered. This macro can be used to
    Filter Data in Excel to Display Results that Contain 1 of 2 Possible Values - AutoFilter
    - This Excel macro filters data in Excel to display results that contain 1 of 2 possible values. This macro uses the xlor operator and that m
    Remove All Filtering From a Worksheet in Excel
    - This Excel macro removes all filtering from a worksheet in Excel. This allows you to completely remove any filter now matter how complex fr
    Filter Data to Show the Top 10 Items from a Data Set in Excel - AutoFilter
    - This Excel macro filters data in Excel in order to display the top 10 items from the data set. The macro uses the autofilter feature and xl
    Filter Data to Show the Top 10 Percent of the Data Set in Excel - AutoFilter
    - This Excel macro filters a set of data in Excel to display only the top 10 percent of that data set. This means that the highest 10 percent
    Filter Data in Excel to Show Only the Top X Percent of that Data Set - AutoFilter
    - This Excel macro filters a set of data in Excel and displays only the top X percent of that data. This means the highest X percent of that
    Filter Data to Show the Top X Number of Items in Excel - AutoFilter
    - This Excel macro filters a data set to display only the top X number of items in that data set in Excel. This means that the highest X numb
    Sort Data that Doesn't Have Headers in Ascending Order in Excel
    - Sort data that doesn't have headers in ascending order in Excel with this macro. This is a simple sort macro that assumes that your data do
    Sort Data With Headers in Ascending Order in Excel
    - Macro that sorts data that has headers in ascending order in Excel. This macro assumes that you data has headers on it. This means that yo
    Sort Data that Doesn't Have Headers in Descending Order in Excel
    - Sort data in Excel that doesn't have headers using a macro. This Excel macro assumes that your data set does not have any headers or rows a
    Sort Data With Headers in Descending Order in Excel
    - This Excel macro sorts data that has headers in descending order. This means that data is sorted Z to A and 10 to 1 - or reverse alphabetic
Queries in Excel
Top
    Basic Web Query in Excel - Import Data from the Web into Excel
    - Import data from the web into Excel with this macro. This is a basic web query macro that will import data from any website, as long as the
Email and Microsoft Outlook Macros in Excel
Top
    Email Current Workbook & or Other Attachments
    - This macro will send the current workbook in an email through Microsoft Outlook. The Macro allows you to send the most recently saved versi
    Send Emails through Outlook using Email Addresses from Excel and text from Word
    - This macro allows you to send an email to a list of recipients through excel. The email will be sent through Outlook and the list of recipi
Charts and Graphs Macros in Excel
Top
    Get Values from a Chart
    - This macro will pull the values from a chart in excel and list those values on another spreadsheet. This will get the source data from char
    Delete All Chart Sheets in Excel - Only Chart Sheets are Deleted - Not Embedded Charts
    - Delete all chart sheets and tabs in Excel using this macro. This will only delete the charts and graphs that are in their own tab or worksh
    Create a Line Chart with a Macro in Excel
    - Create a line chart in Excel with this macro. This allows you to quickly and easily create line charts and graphs from a selection of data
    Create a Bar Chart With a Macro in Excel
    - Create a bar chart in Excel with this macro. You will be able to quickly and easily turn any range of numbers and data into an Excel bar ch
    Create a Column Chart with a Macro in Excel
    - This macro adds a column chart to Excel. This is an easy to use macro that allows you to quickly chart and graph a range of data in Excel.
Formatting Macros in Excel
Top
    Format Cells as an Accounting Number in Excel Number Formatting
    - This free Excel macro formats a selected cell as an Accounting number. This means that the accounting number format is applied to any cells
    Format Cells as a Currency in Excel Number Formatting
    - This free Excel macro allows you to quickly and easily format a selection of cells in the Currency number format in Excel. This format allo
    Format Cells in The Long Date Number Format in Excel
    - This free Excel macro formats a selection of cells in the Long Date number format in Excel. The Long Date number format displays the day of
    Format Cells in The Short Date Number Format in Excel
    - This free Excel macro applies the Short Date number format to a selection of cells in Excel. This number format displays the date like this
    Format Cells as a Fraction in Excel Number Formatting
    - This free Excel macro will automatically format a selected cell or many selected cells in the Fraction number format in Excel. The Fraction
    Format Cells in The General (default) Format in Excel Number Formatting
    - This free Excel macro formats a selected cell or range of cells to the General number format in Excel. This is the default number format an
    Format Cells in The Number (Numerical) Number Format in Excel
    - This free Excel macro formats selected cells in the Number or Numerical number format in Excel. This means that the cell is formatted as a
    Format Cells as a Percentage in Excel Number Formatting
    - This free Excel macro formats a selection of cells as a Percentage in Excel. This simply changes a cell's number format to the Percentage n
    Format Cells as a Scientific Number in Excel Number Formatting
    - This free Excel macro formats selected cells in the Scientific number format in Excel. This means the cell will be put into the form of pow
    Format Cells as Text in Excel
    - This free Excel macro formats a selection of cells as Text in Excel. This macro applies the Text number format to cells in Excel. This mea
    Format Cells as Time in Excel
    - This free Excel macro formats a selection of cells in the Time format in Excel. This Time number format means that instead of just numbers,
    Highlight Every Other Row in a Selection in Excel - Table Formatting
    - This free Excel macro will highlight every other row in a selection of cells with a color that is specified within the macro. To use this m
Data Validation Macros in Excel
Top
    Add a Drop Down Menu to a Cell in Excel - Data Validation Macro
    - Add a drop down menu or list to a cell in Excel with this free Excel macro. This is a great little macro that allows you to automatically a
    Add an Input Message to a Cell - Message Appears When the Cell is Selected in Excel - Data Validation Macro
    - Add data validation input messages to cells in Excel with this free Excel macro. These messages appear when a specific cell has been select
    Remove All Data Validation from a Cell in Excel
    - Remove all data validation from a cell in Excel with this free Excel macro. This is a great macro to use when you need to remove all data v
UDF - User Defined Functions in Excel
Top
    Count The Number of Words in a Cell or Range of Cells in Excel - UDF
    - Count words in cells with this user defined function (UDF). This UDF allows you to count the number of words that are within one cell or a
    Count The Number of Words in a Cell or Range of Cells in Excel - With User-Specified Delimiter / Separator - UDF
    - UDF to count the number of words in a cell or range with a user-specified delimiter. This means that you can tell the function what separat
    Calculate the Future Value (FV) of Compound Interest in Excel - UDF Macro
    - This UDF (user defined function) calculates the Future Value of Compound Interest in Excel. The mathematical formula that is behind this fu
    Extract a Word from a Sentence / Cell in Excel with this UDF - Allows for a User-Defined Delimiter
    - Extract whole words from a cell or sentence in Excel with this UDF. This allows you to specify which word from a cell you want to pull out
    Generate a Non-Repeating List of Random Numbers in Excel - UDF
    - Generate a series of non-repeating random numbers in Excel with this UDF (user defined function). This is a great function to use with stat
    Display The Actual Link / Email Address From Links in Excel - UDF
    - Display the actual link or email address from links within Excel with this UDF. This user defined function pulls the actual http address or
    Vlookup Function That Searches The Entire Workbook - UDF
    - This UDF is a Vlookup function that searches the entire workbook in Excel. The syntax and usage of the function is exactly the same as the
    WEEKNUM UDF for Excel Versions That Don't Contain This Function - UDF
    - This is a WEEKNUM UDF for Excel. This allows you to determine the number of the week in the year on which a particular date falls. This UD
    Return the ISO Week Number from a Date in Excel - UDF
    - Return the ISO Week Number in Excel with this UDF. This is a simple to use UDF (user defined function) that returns the number of the week
    Return the ISO Standards Start of the Year in Excel - First Monday of the Year - UDF
    - Return the date of the first Monday of any year with this UDF ISO Year function in Excel. This is a really simple and easy to use UDF (user
    Convert Numeric Dollar Values into Text in Excel - UDF
    - Convert a numeric dollar amount into its text equivalent. This UDF (user defined function) for Excel will change or translate data in a cel
    Output the Worksheet Name in a Cell in Excel - UDF
    - UDF to return the name of the worksheet in Excel on which this function is located. There are no arguments for this function. Simply input
    Output the Name of the Current Excel Workbook Including Extension - UDF
    - Free Excel UDF to display the name of the current Excel workbook, including the workbook extension. This function has no arguments and is v
    Output the File Path to and Name of a Workbook in Excel - UDF
    - Free Excel UDF (user defined function) that displays the full file path and name of an Excel workbook. This function is very easy to use si
    Output the Name of the Current Excel Workbook Without the File Extension - UDF
    - Free Excel UDF that displays the name of the Excel workbook without its extension. This is a great UDF (user defined function) to use when
    Determine a Cell's Color with this UDF - Outputs as Text or the Index Number in Excel
    - This free Excel UDF allows you to output the color of a cell in text format or as that color's index number. Also note that this refers to
    Get Text from Comments in Excel Including the Author of the Comment - UDF
    - Output all text from a cell comment, including comment author, with this UDF in Excel. This UDF (user defined function) has only one argume
    Get Comment Text from Cell Comments in Excel - UDF
    - This free Excel UDF outputs all text from a comment in Excel. This benefit of this UDF is that it doesn't display the comment author's name
    Get the Number(s) Out of a Cell that Contains Both Text and Numbers in Excel - UDF
    - This free Excel UDF allows you to get the numbers out of a cell that contain both text and numbers. This is a great function for splitting
    Reverse the Contents of a Cell in Excel - UDF
    - Reverse cell contents with this free Excel UDF (user defined function). This will mirror all cell contents regardless of the type of conten
    Display the AutoFilter Criteria Applied to a Data Set in a Cell in Excel - UDF
    - This free Excel UDF (user defined function) allows you display the filter criteria that has been applied to a data set in Excel. This means
    Extract the First Word from a Cell in Excel - User Defined Delimiter Text Extraction - UDF
    - This free Excel UDF (user defined function) returns the first word from a cell in Excel. This extracts the first word from a sentence or ju
    Extract the Last Word from a Cell in Excel - User Defined Delimiter Text Extraction - UDF
    - This UDF (user defined function) extracts the last word or characters from a cell in Excel. This is done by finding the last separator (i.e
    Return the Max Number from a Range That is Within a Minimum and Maximum Target Value in Excel - UDF
    - Return the highest number between two numbers that is in a range of cells with this UDF (user defined function) in Excel. This allows you t
    Determine if a Cell Contains a Function in Excel - Great for Conditional Formatting and Validation - UDF
    - Determine if a cell in Excel contains a formula or function with this UDF (user defined function). This function returns "TRUE" if a cell c
Deleting Rows and Columns in Excel
Top
    Delete Empty Columns
    - This macro will delete columns which are completely empty. This means that if there is no data within the entire column it will be removed.
    Delete Duplicate Rows
    - This macro will delete rows that appear twice in a list or worksheet. If two cells are identical, this macro will delete every row with an i
    Delete Entire Rows Based on Predefined Criteria (Text)
    - This macro will allow you to specify certain criteria and then to delete rows based upon that criteria. You will choose the Row, Column, an
    Delete Blank Rows in Excel
    - This is a macro which will delete blank rows in excel. This version will delete an entire row if there is a blank cell detected in the colu
    Delete Rows in Excel if Completely Empty
    - This macro will delete only completely blank rows in an excel spreadsheet. It allows you to make a selection of rows, run the macro, and the
Worksheet Area Related Macros in Excel
Top
    Delete All Comments in a Worksheet in Excel Macro
    - Excel macro that will delete all of the comment contained within the active or current worksheet in Excel. This macro deletes only the in-c
    Remove Comments from a Workbook in Excel - All Comments Deleted - Macro VBA
    - Excel macro that will remove/delete all of the comments from an entire Excel workbook. This means that this macro will remove all of the co
    Add Comments to Cells with an Excel Macro
    - Add comments to cells in Excel with this macro. This allows you to quickly and easily add a comment to any cell within a worksheet or workb
    Hide Comments in Excel Completely - Even Indicators Will not Appear
    - Hide all comments in an Excel workbook. No indicators will be displayed and comments will not appear when you hover over or select a cell t
    Hide Comments in Excel Partially - Comment Indicator Shows and Will Display on Hover
    - Hide comments in Excel with this macro. Comment indicators will still appear in the cells and users will also be able to view the comments w
    Show a Single Comment in Excel - Means the Comment is Always Visible, No Hovering Necessary
    - This macro in Excel allows you to display or show a particular comment in Excel. This will make the desired comment visible even when you a
    Display or Show all of the Comments within an Entire Excel Workbook
    - This macro in Excel will display all of the comments within the entire Excel workbook. This means that all of the comments in the workbook
    Hide Specific Comments in Excel - Comments Will Still Display on Hover
    - Hide specific comments in Excel with this macro. Comments are still visible on hovering over the cell that contains the comment. The in ce
    Delete Comments in Excel - Permanently Remove Specific Comments from Excel
    - Delete a comment in Excel with this macro. You can permanently remove or delete a specific comment or many comments using this macro. The
    Add Background Photos / Images to Comments in Excel
    - Add background images and photos to your comments in Excel with this macro. This macro uses a really cool feature in Excel that allows you
    List All Named Ranges in Excel - Displays the Name and Value for Every Named Range Within the Active Workbook in Excel
    - List all of the named ranges in a workbook in Excel and the corresponding values stored within every named range. This is a simple yet grea
Time Related Macros in Excel
Top
    Close a Workbook after a Time Limit is Reached
    - This macro will automatically close the workbook in which it is located after that workbook has been opened for a certain period of time. T
    Automatically Run a Macro so Many Seconds, Minutes, or Hours After an Excel Workbook has been Opened
    - Run a macro after a certain amount of time has passed since the Excel workbook was opened. This means that you can set this macro to run an
    Automatically Run a Macro at a Certain Time - i.e. Run a Macro at 4:30PM every day
    - Automatically run an Excel macro at a certain time. This allows you to not have to worry about running a macro every day. This macro will,
Printing Macros in Excel
Top
    Print All Charts That are in a Worksheet
    - This macro will print all of the embedded charts which are on the current active worksheet. Each chart will be printed on a separate page.
    Print all Embedded Charts in the Entire Workbook
    - This macro will print every embedded chart in the active workbook. If you have an embedded chart in any worksheet within the workbook, it wi
    Print Selected Worksheets in Excel
    - This free excel macro will print all selected worksheets in Excel. If there are no other worksheets selected the active worksheet will be p
    Print The Current Worksheet in Excel
    - This free Excel macro will print the current active worksheet in Excel. This means that whatever sheet you are currently viewing will be pr
    Print Entire Workbook in Excel
    - This free excel macro allows you to print the entire workbook in Excel. You can easily set this macro to a button within the spreadsheet an
    Print Specific Pages in Excel
    - This free Excel macro allows you to print a pre-specified selection of pages from Excel. This means you can print 2 pages from a 10 page wo
    Display the Print Window in Excel
    - This free Excel macro displays the print window or dialog box in Excel. This is the same window that would appear when you hit Ctrl+P on yo
    Print Preview Screen Display for The Current or Selected Worksheets in Excel
    - This free Excel macro allows you to display the print preview screen or window for the current or selected worksheets in Excel. If you do n
    Print Preview Screen Display for The Entire Workbook in Excel
    - This free Excel macro allows you to quickly and easily display the print preview window or mode for the entire Excel workbook. Every worksh
    Print Preview Display for Specific Worksheets in Excel
    - This free Excel macro allows you to display the print preview mode or window in Excel for a specified Excel worksheet. This is a great macr
    Complete Guide to Printing in Excel Macros - PrintOut Method in Excel
    - This free Excel macro illustrates all of the possible parameters and arguments that you can include in the PrintOut Method for Excel Macros
Not Yet Categorized
Top
    Automatically Highlight the Active or Selected Cell
    - This macro will highlight the active cell in any excel spreadsheet with a color selected in the code. This means that any cell you select w
    Combine Multiple Workbooks into One
    - This macro for Microsoft Excel allows you to combine multiple workbooks and worksheets into one new workbook and worksheet. When the macro
    Pop-Up Message Box When a Range of Cells Reaches a Certain Average
    - This macro will display a message box when the numbers within a range of cells reaches an average of 5. The current macro will display a po
    Pop-Up Message Box When a Cell Reaches a Certain Value or Contains Certain Text
    - This macro will display a message box in excel when a cell reaches a certain value or contains certain text. This means that when cell A1 c
    Delete Empty or 'Broken' Named Ranges (#REF!)
    - This macro will delete named ranges which refer to empty or #REF! ranges. This means that if a named range has been 'broken' so that it now
    Name Worksheets Based on Cell Contents
    - This macro allows you to have your worksheets named by whatever is in a particular cell within a worksheet. This means that you can set you
    Enter Text/Characters with a Double-Click of the Mouse
    - This macro allows you to enter any text or number, that you specify, in a cell on which you double-click. In the example macro below, an X
    Change Formulas to Absolute or Relative References
    - This macro will change the formulas in cells to absolute or relative. It allows you to change the rows or the columns or both to absolute o
    Prevent Saving a Workbook under a Different File Name
    - This Excel macro prevents the user from saving an excel file or workbook under a different file name. The file can only be saved under its
    Disables the "Save As" Feature in Excel
    - This macro will disable the Save As feature in excel. This means that a user will not be able to resave the workbook under a different name
    Delete Multiple Named Ranges Quickly
    - This macro will allow you to delete multiple named ranges very quickly. When you run this macro, a message box will pop-up and ask you if yo
    Delete Hidden Worksheets
    - This macro will delete all hidden worksheets within a workbook. When you run this macro a warning window will pop up for each hidden sheet m
    Delete Hidden Rows in a Workbook
    - This macro will delete hidden rows from every worksheet in an entire workbook. However, note that this will only delete one hidden row from
    Change Text to Lowercase
    - This macro will change all text within the selected cells to lowercase. It works only on selected cells within Microsoft Excel and it will w
    Highlight Cells with Text or Formulas (non-empty cells)
    - This macro will highlight all cells in excel which are not empty. This means that if a cell contains formulas, text, numbers, or other char
    Highlight Cells which Contain Formulas
    - This macro will highlight all of the cells in a worksheet which contain a formula. The first one listed will highlight all of the cells wit
    Highlight the Row and Column of the Selected Cell
    - This macro will highlight the row and column of the active cell. This will fill the column and row of the active cell with a solid backgrou
    Highlight the Row of the Selected Cell
    - This macro will highlight the row and column of the active cell. This will fill the row of the active cell with a solid background color an
    Highlight the Column of the Selected Cell
    - This macro will highlight the column of the active cell. This will fill the column of the active cell with a solid background color and rem
    Hide Formulas in a Worksheet and Prevent Deletion
    - This macro will hide all formulas within a workbook and not allow them to be deleted. The page will not be protected like a regular protect
    Replace Formulas with Values (For The Entire Workbook)
    - This macro will convert every formula in an entire workbook into its respective value. This is basically a quick way to replace to do a cop
    Protect and Unprotect All Worksheets at Once
    - This will allow you to protect or unprotct all worksheets in a workbook at once. It doesn't allow you to input a password; however, if you r
    Capitalize the First Letter of Every Word in a Cell
    - This macro will make the text of any selected cell in excel proper case. This means that the first letter of any word in excel will be capit
    Open a Word Document from Excel
    - This Microsoft Excel macro will open a Microsoft Word document from excel. With this macro, you can open any word document on your computer.
    Open Microsoft Word from Excel
    - This free macro will open the Microsoft Word program on your computer. You do need to have this program first. This will not open a specif
    Open a PowerPoint Presentation from Excel
    - This free macro for Microsoft Excel allows you to open any PowerPoint presentation from excel. You can change the file extension in the mac
    Open Microsoft PowerPoint from Excel
    - This free macro will open the Microsoft PowerPoint program on your computer. You do need to have this program first. This will not open a
    Open Microsoft Outlook from Excel
    - This free macro will open the Microsoft Outlook program on your computer. You do need to have this program first. This will not open a spe
    Open any Program from Excel
    - This free excel macro allows you to open any program on your computer from excel. You can open a media player, file viewer, image editor, i
    Make Text to Uppercase
    - This macro will change all text within the selected cells to uppercase. It works only on selected cells within Microsoft Excel and it will w
    Delete Only the Text from Cells
    - This macro will delete all text from selected cells. This will not delete any other characters or numbers from any cells. That means that
    Remove (Delete) Hyperlinks from Worksheets
    - This macro will remove all hyperlinks from the active worksheet. It will delete the hyperlinks but it will not delete the text of the link.
    Create a 12 Month Calendar With The Current Day Highlighted in Excel
    - Create a 12 month formatted calendar on a new tab in Excel with the current day highlighted. This macro creates a nicely formatted 12 month
    Delete a VBA Module From Excel
    - Delete a VBA macro module from Excel with this macro. This macro allows you to fully remove a macro module from Excel. This is great when
Contact | Privacy Policy | Disclaimer
Copyright© 2012 TeachExcel.com