Forum Discussion
How to permanently fix column width
- Jun 18, 2023
If you are using Office 2019 and working with a CSV file, the column width settings cannot be directly saved within the CSV file itself. However, you can use a workaround by following these steps:
- Open the CSV file in Excel.
- Adjust the column widths as desired by dragging the column dividers or using the AutoFit feature to fit the content.
- Select all the cells in the worksheet by clicking the "Select All" button at the top left corner of the worksheet (or pressing Ctrl+A).
- Right-click on any of the selected cells and choose "Copy" from the context menu.
- Create a new Excel workbook by clicking "File" > "New Workbook" or pressing Ctrl+N.
- In the new workbook, right-click on cell A1 and choose "Paste" > "Keep Source Formatting" or press Ctrl+Alt+V. This will paste the content, including the adjusted column widths, from the CSV file into the new workbook.
- Finally, save the new workbook as an Excel file (.xlsx) by clicking "File" > "Save As" and choosing a location on your computer.
By following these steps, you will have a new Excel file with the adjusted column widths saved. Whenever you open this file, the columns should remain the same width as you set them.
Please note that this workaround involves copying the content from the CSV file into a new Excel file. Any formulas, formatting, or data validation rules that were present in the original CSV file may not be preserved in the new Excel file.
NikolinoDE I am using office 2019 and it is a csv file. Thank you.
If you are using Office 2019 and working with a CSV file, the column width settings cannot be directly saved within the CSV file itself. However, you can use a workaround by following these steps:
- Open the CSV file in Excel.
- Adjust the column widths as desired by dragging the column dividers or using the AutoFit feature to fit the content.
- Select all the cells in the worksheet by clicking the "Select All" button at the top left corner of the worksheet (or pressing Ctrl+A).
- Right-click on any of the selected cells and choose "Copy" from the context menu.
- Create a new Excel workbook by clicking "File" > "New Workbook" or pressing Ctrl+N.
- In the new workbook, right-click on cell A1 and choose "Paste" > "Keep Source Formatting" or press Ctrl+Alt+V. This will paste the content, including the adjusted column widths, from the CSV file into the new workbook.
- Finally, save the new workbook as an Excel file (.xlsx) by clicking "File" > "Save As" and choosing a location on your computer.
By following these steps, you will have a new Excel file with the adjusted column widths saved. Whenever you open this file, the columns should remain the same width as you set them.
Please note that this workaround involves copying the content from the CSV file into a new Excel file. Any formulas, formatting, or data validation rules that were present in the original CSV file may not be preserved in the new Excel file.
- nzingha417Jun 18, 2023Copper Contributor
NikolinoDE thank you very much!
- NikolinoDEJun 18, 2023Gold ContributorI hope I was able to help you with this!
Furthermore, I wish you a lot of success with Excel.