Skip to content
- Writing VBA for Pivot Tables in Excel: A Practical GuideYes—you can write VBA to create, refresh, and configure Excel PivotTables, including their row, column, and value fields. In Excel for Microsoft…VBA & macros
- Excel Worksheet Not Scrolling? Fix the Most Likely CausesIf an Excel worksheet will not scroll, first check whether Scroll Lock is on, then look for frozen panes or hidden scroll…Errors & fixes
- Excel Worksheet Keeps Crashing? Causes, Checks and FixesIf an Excel worksheet keeps crashing, first find out whether Excel fails with every workbook or only one, then open Excel in…Errors & fixes
- VBA UserForm InputBox: How to Get User InputIn Excel VBA, a UserForm does not have a special “InputBox” control: add a TextBox for entry and buttons such as OK…VBA & macros
- Excel Worksheet Could Not Be Activated? Causes and FixesIf Excel says a worksheet could not be activated, first check that the sheet exists, is visible, and belongs to an open…How-to basics
- VBA Turn Off AutoFilter in Excel Without Losing DataTo turn off a worksheet AutoFilter in VBA, first show all rows if a filter is active, then set the worksheet’s AutoFilterMode…VBA & macros
- Excel Worksheet Autofit Code for Rows and ColumnsTo AutoFit a worksheet’s used columns and rows with VBA, run ws.UsedRange.Columns.AutoFit and ws.UsedRange.Rows.AutoFit on a worksheet object. The macro below applies…How-to basics
- VBA PivotTable Field Name Is Not Valid: Causes and FixesThe “PivotTable field name is not valid” message usually means Excel cannot read a proper heading for every column in the source…VBA & macros
- Excel Workbook Won’t Scroll? Fix Frozen or Stuck Sheets FastIf an Excel workbook will not scroll, first go to View > Freeze Panes > Unfreeze Panes, then check whether Scroll Lock…Errors & fixes
- VBA Sort Worksheets Alphabetically: Code and SetupYes. In Excel for Microsoft 365 on Windows, VBA can sort a workbook’s worksheet tabs alphabetically; the macro below compares worksheet names…VBA & macros
- Excel Workbook Structure: Sheets, Cells, and FilesAn Excel workbook is the complete spreadsheet file: it contains one or more sheets, and each worksheet organizes data in a grid…How-to basics
- VBA Sort Table by Column: Code and Common FixesTo sort an Excel table by one column with VBA, get the table and column by name, clear any old sort fields,…VBA & macros
- Excel Workbook Statistics: What It Counts and How to Use ItExcel’s Workbook Statistics feature gives you a quick count of items in the active worksheet or the whole workbook. In Microsoft 365…How-to basics
- VBA Sort Table: Excel Code, Options, and Common IssuesTo sort an Excel table with VBA, get the table as a ListObject, add one or more sort fields, and apply the…VBA & macros
- Excel Workbook Sharing: Collaborate Without ConflictsTo share an Excel workbook for live collaboration, save it to OneDrive or SharePoint Online, select the Share button, and invite people…How-to basics
- VBA Sort Syntax: Examples for Excel RangesIn Excel VBA, the basic sort syntax is Range.Sort: specify the range to rearrange, a key column, its sort order, and whether…VBA & macros
- Excel Workbook Protection: What It Does and How to Use ItExcel workbook protection is a set of separate controls, not one all-purpose security switch. In Microsoft 365 for Windows, use Review >…How-to basics
- VBA Sort String Array: Methods, Code, and ExamplesVBA has no built-in general-purpose routine for sorting a string array, but you can sort one with a short insertion-sort procedure. The…VBA & macros
- Excel Workbook Performance: How to Diagnose SlownessExcel workbook performance depends on how much data and formatting a file contains, how its formulas are structured, and how often calculations…How-to basics
- VBA Sort Sheets Alphabetically: Macro and StepsYes. In Excel for Microsoft 365 on Windows, a short VBA macro can sort a workbook’s sheet tabs alphabetically from A to…VBA & macros
- Excel Workbook Password Remover: Safe Ways to Regain AccessAn Excel workbook password remover is usually Excel itself: if you know the password, open the workbook, remove the relevant protection in…How-to basics
- VBA Sort Sheet: How to Sort Excel Data with a MacroTo sort a sheet with VBA, define the complete data range, add the column or columns to sort by, and apply the…VBA & macros
- Excel Workbook Not Showing Sheet Tabs? Fixes That WorkIf an Excel workbook is not showing sheet tabs, first check File > Options > Advanced and, under Display options for this…How-to basics
- VBA Sort Selection in Excel: Code and Common FixesTo sort a selected range in Excel with VBA, use the range’s Sort method and specify a sort key, order, and header…VBA & macros
- Excel Workbook Not Scrolling? Fix the Common CausesIf an Excel workbook will not scroll, first check View > Freeze Panes > Unfreeze Panes, then check whether Scroll Lock is…Errors & fixes
- VBA Sort Range by Two Fields in ExcelTo sort an Excel range by two fields in VBA, add two sort keys in priority order, set the full range to…VBA & macros
- Excel Workbook Name: What It Means and How to Change ItAn Excel workbook name is the name of the Excel file, such as Quarterly Budget.xlsx; it is not the name of a…How-to basics
- VBA Sort Range by Column: Practical Examples and TipsTo sort a range by one column in Excel VBA, call the range’s Sort method and specify the key column, sort order,…VBA & macros
- Excel Workbook Links Not Updating? Fix the CausesIf Excel workbook links are not updating, check the link in Data > Workbook Links and choose Refresh, then confirm the source…Errors & fixes
- Excel Workbook Keeps Crashing? Fixes That Actually HelpIf an Excel workbook keeps crashing, first make a copy of the file, then open Excel in Safe Mode and test whether…Errors & fixes