Skip to content
- VBA to Save Excel Tabs as Separate FilesYes. A VBA macro can copy each visible worksheet tab into a new workbook and save it as a separate .xlsx file;…VBA & macros
- VBA Open Text File in Excel: Methods, Code, and TipsTo open a text file with VBA in Excel for Microsoft 365 on Windows, use Workbooks.OpenText and specify how the file is…VBA & macros
- VBA Open Excel File Read-Only: Syntax and ExamplesTo open an Excel workbook as read-only with VBA, use Workbooks.Open and set its ReadOnly argument to True. For example, Set sourceWb…VBA & macros
- VBA: Open an Excel File from SharePointTo open a SharePoint workbook with VBA, the most dependable approach is to sync its document library with OneDrive and pass the…VBA & macros
- VBA Open Excel File From Path: Code and Common FixesTo open an Excel workbook from a known path in VBA, call Workbooks.Open and pass the full path as its Filename argument.…VBA & macros
- VBA Open Excel File and Save as CSV with Working CodeYes. In VBA, open the workbook with Workbooks.Open, then call SaveAs with FileFormat:=xlCSVUTF8 to create a UTF-8 CSV file. Excel exports only…VBA & macros
- VBA Open an Excel File and Copy Data into a WorkbookTo open an Excel file and copy its data with VBA, use Workbooks.Open to open the source workbook, then assign the source…VBA & macros
- VBA MS Access Cell Color in Excel: Set Cells SafelyAccess does not have Excel-style worksheet cells, so Access VBA cannot color an Access table cell as if it were an Excel…VBA & macros
- VBA Macro to Open an Excel File and Copy DataTo open an Excel workbook and copy its data with VBA, use a macro that asks you to select a file, opens…VBA & macros
- VBA Macro Excel Workbook: Enable Editing on Open SafelyNo: a VBA macro cannot safely or legitimately click Excel’s Enable Editing button in Protected View. To edit a workbook, first verify…VBA & macros
- VBA Macro to Find the Last Row in Excel: Methods That WorkTo find the last nonblank row in column A, use lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row, where ws is the worksheet you want to…VBA & macros
- VBA Excel Open and Save As Dialog Box: How It WorksIn Excel VBA, use Application.GetOpenFilename to display a file-selection dialog and Application.GetSaveAsFilename to ask where a file should be saved. Neither method…VBA & macros
- VBA Excel Copy Entire Column: Code and TipsTo copy an entire column in Excel with VBA, use the column’s Copy method and specify the destination: wsSource.Columns("A").Copy Destination:=wsTarget.Columns("C"). This copies…VBA & macros
- VBA Excel: Check a Cell’s FormatTo check a cell’s format in VBA, read the relevant property of its Range object: use Range("A1").NumberFormat for the number-format code, Range("A1").Interior.Color…VBA & macros
- VBA Code to Open an Excel File from SharePointIn Excel for Microsoft 365 on Windows, use VBA’s Workbooks.Open method with the file’s direct SharePoint URL, provided you are signed in…VBA & macros
- VBA Code to Open an Excel File from a PathUse VBA’s Workbooks.Open method to open a workbook by its full file path. In Excel for Microsoft 365 on Windows, assign the…VBA & macros
- VBA Code to Open an Excel File from a Folder SafelyTo open an Excel workbook from a folder with VBA, call Workbooks.Open with the workbook’s full file path. For example, the macro…VBA & macros
- VBA Code to Insert an Image in an Excel Cell AutomaticallyUse VBA’s Shapes.AddPicture method to insert a picture, then position and size it to match a worksheet cell. The macro below places…VBA & macros
- VBA Code to Add a New Sheet in Excel: Examples and TipsTo add a new worksheet at the end of the workbook and give it a unique name, use a VBA macro like…VBA & macros
- Variable Width Column Chart in Excel: How It WorksExcel does not include a native variable-width column chart type: ordinary column-chart bars share the same width. You can make a proportional-looking…Charts & pivot tables
- Excel VLOOKUP #VALUE! Error: Causes, Checks, and FixesIn Excel for Microsoft 365 on Windows, VLOOKUP most commonly returns #VALUE! when its third argument, col_index_num, is less than 1 or…Errors & fixes
- Excel IF Function #VALUE! Error: Causes and How to FixA #VALUE! error in an Excel IF formula means that part of the calculation Excel needs to perform has an incompatible value,…Errors & fixes
- Excel Drop-Down Validation: Setup, Lists, and FixesIn Excel for Microsoft 365 on Windows, create a drop-down by selecting the cells, choosing Data > Data Validation, setting Allow to…How-to basics
- Vacation Meal Planning Template Excel: Plan Every DayYes. A useful vacation meal planning template in Excel has a daily menu, a grocery list with quantities and estimated costs, and…How-to basics
- WORKDAY in Excel: Calculate Business Days and DatesUse Excel’s WORKDAY function to calculate a date a chosen number of working days before or after a start date, excluding weekends…Formulas & functions
- Weighted Average in Excel: Formula, Steps and ExamplesWith values in B2:B4 and their corresponding weights in C2:C4, calculate a weighted average in Excel with =SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4). SUMPRODUCT multiplies each value…Formulas & functions
- How to Use VLOOKUP Between Two Worksheets in ExcelTo use VLOOKUP between two sheets in Excel, enter a formula on the sheet where you want the answer and point its…Formulas & functions
- Treemap Chart in Excel: Create and Format OneTo create a treemap chart in Excel for Microsoft 365 on Windows, arrange your data in columns with category levels followed by…Charts & pivot tables
- Using Transpose in Excel: Methods, Formulas, and TipsTo transpose data in Excel, copy the cells, select the destination, and choose Home > Paste > Transpose. For a result that…Formulas & functions
- Excel TODAY Formula: Show Today’s Date AutomaticallyTo show today’s date in an Excel cell and have it update, enter =TODAY(). The function returns the current date from Excel’s…Formulas & functions