{"id":1871,"date":"2022-08-07T10:32:38","date_gmt":"2022-08-07T07:32:38","guid":{"rendered":"https:\/\/www.addictivetips.com\/?p=369513https:\/\/www.addictivetips.com\/microsoft-office\/set-a-default-sheet-in-excel-for-office-365\/"},"modified":"2022-08-07T10:32:38","modified_gmt":"2022-08-07T07:32:38","slug":"how-to-set-a-default-sheet-in-excel-for-office-365","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1871-how-to-set-a-default-sheet-in-excel-for-office-365\/","title":{"rendered":"How to set a default sheet in Excel for Office 365"},"content":{"rendered":"<p>An Excel file can have multiple sheets in it. The sheets can be linked to each other, and to other files on your system. By default, when you open an Excel file, it opens to the sheet that you were last working in. If you need it to open a specific sheet whenever you open the file, you\u2019re going to have to manually switch to it before you close it. This isn\u2019t exactly intuitive since you may forget to switch to the sheet. You can automate it with a simple Macro and set a default sheet for an Excel file.<\/p>\n<h2>Default sheet for Excel file<\/h2>\n<p>Open the Excel file that you\u2019d like to set a default sheet in. Sheets have a default name and it will do for the macro but, it is a good idea to give the sheets a proper name. If you plan on changing the name of a sheet later on, it is better to do it now so that the macro can be set up. Take note of the name of the sheet that you will set as the default.<\/p>\n<p><span class=\"post-image\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-369525\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365.jpg\" alt=\"\" width=\"1200\" height=\"600\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365.jpg 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-2.jpg 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-3.jpg 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-4.jpg 768w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-5.jpg 680w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/span><\/p>\n<p>Tap the Alt+F11 key. This will open the VBA editor. From the column on the left, make sure your Excel file is selected. Expand it, and select the \u2018This Workbook\u2019 option. Double-click it to open the input field in the pane on the right. Make sure the dropdown reads \u2018Workbook\u2019.<\/p>\n<p>Paste the following in it but change the name of the sheet in quotes in the second line to the name of the sheet that you\u2019d like to set as the default one.<\/p>\n<p><strong>Macro<\/strong><\/p>\n<pre>Private Sub Workbook_Open() Worksheets(\"Default\").Activate End Sub<\/pre>\n<p><strong>Example<\/strong><\/p>\n<pre>Private Sub Workbook_Open() Worksheets(\"Main\").Activate End Sub<\/pre>\n<p>Save the file as a Macro enabled file. It will have the XLSM file extension.<\/p>\n<p><span class=\"post-image\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-369526\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-1.jpg\" alt=\"\" width=\"1200\" height=\"600\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-1.jpg 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-6.jpg 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-7.jpg 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-8.jpg 768w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/05\/how-to-set-a-default-sheet-in-excel-for-office-365-9.jpg 680w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/span><\/p>\n<p>This will work regardless of which system you open the file on. If you share this file with someone, and they open it on their own respective desktop, they will see a prompt telling them it has a Macro and it must be allowed to run. If the Macro is allowed to run, the file will open to the default sheet. If it is prevented from running, the file won\u2019t open or if it opens, it will open to the last sheet that was edited. This is the one drawback that this method has.<\/p>\n<p>If you are sharing the file, it\u2019s a good idea to let your recipient know that it contains a Macro and what the Macro does.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An Excel file can have multiple sheets in it. The sheets can be linked to each other, and to other files on your system. By default, when you open an Excel file, it opens to the sheet that you were last working in. If you need it to open a specific sheet whenever you open &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1872,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[36],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1871"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1871"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1871\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1872"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}