To collapse an entire outline in Microsoft Excel, you need to click on the boxes with the number 1 near the column and row headers. These boxes are known as outline symbols. By clicking on them, you can collapse or expand different levels of the outline, hiding or showing the corresponding rows or columns. This allows you to have a more concise view of your data and focus on specific sections of the outline as needed.