Close and Open Workbooks in Excel VBA
The Close and Open Method in Excel VBA can be used to close and open workbooks. Remember the Workbooks collection contains all the Workbook objects that are currently open.
Page 17 of 29 · 695 articles
The Close and Open Method in Excel VBA can be used to close and open workbooks. Remember the Workbooks collection contains all the Workbook objects that are currently open.
This article describes how to import or export text files in Excel. Text files can be comma separated (.csv) or tab separated (.txt)
If you have Excel 365 or Excel 2021 use XLOOKUP instead of VLOOKUP. The XLOOKUP function is easier to use and has some additional advantages.
Formula auditing in Excel allows you to display the relationship between formulas and cells. The example below helps you master Formula Auditing quickly and easily.
When Scroll Lock is turned on you can use the arrow keys to scroll through the worksheet without changing the active cell. Excel displays Scroll Lock in the status bar.
You can split your Excel worksheet into panes to view multiple distant parts of your worksheet at once. Simply use the split bar to change the size of each pane.
Below we will look at a program in Excel VBA that highlights the row and column of the Active Cell (selected cell). This program will amaze and impress your boss.
This example teaches you how to apply an advanced filter in Excel to only display records that meet complex criteria.
This example shows you how to make your Excel workbook read-only. Users without a password can still save changes by creating a new copy of the workbook.
Book.xltx and Sheet.xltx are two special templates you can create and add to the XLStart folder. As a result Excel uses Book.xltx as the basis for new workbooks and Sheet.xltx as the basis for new worksheets.
Code added to the Worksheet BeforeDoubleClick Event will be executed by Excel VBA when you double click a cell on a worksheet.
If you save your Excel files in 97-2003 format (.xls instead of the new .xlsx format) users who do not have Excel 2007 or later installed on their computer can still open your Excel files.
To quickly insert a row in Excel select a row and use the shortcut CTRL SHIFT +. To quickly insert multiple rows select multiple rows and use the same shortcut.
To add a column in Excel right-click the column letter and click Insert. When you insert a column or row cell references update automatically.
Below we will look at a program in Excel VBA that calculates the total sales of each employee over a period of three years.
This example teaches you how to create a box and whisker plot in Excel. A box and whisker plot shows the minimum value first quartile median third quartile and maximum value of a data set.
Below we will look at a program in Excel VBA that shows a print preview of all the possible football matches from a list of teams.
This example shows you how to solve a system of linear equations in Excel. For example we have the following system of linear equations:
Below we will look at a program in Excel VBA that calculates the tax on an income. The following tax rates apply to individuals who are residents of Australia.
Use data validation in Excel to make sure that users enter certain values into a cell.
Below we will look at a program in Excel VBA that sorts birthdays by months first and days second (so we ignore years). We want the birthday with the lowest month number at the first position. If there are birthdays with equal month numbers we want the birthday with the lowest day number first. Are you ready?
To separate the contents of one Excel cell into separate columns you can use the 'Convert Text to Columns Wizard'. For example when you want to separate a list of full names into last and first names.
Color Scales in Excel make it very easy to visualize values in a range of cells. The shade of the color represents the value in the cell.
This example teaches you how to debug code in Excel VBA. By pressing F8 you can single step through your code.