Select a Worksheet Insert a Worksheet Rename a Worksheet Move a Worksheet Delete a Worksheet Copy a Worksheet. A worksheet is a collection of cells where you keep and manipulate the data. Each Excel workbook can contain multiple worksheets. In the VBA editor, open the Microsoft Excel Object called 'ThisWorkbook.' At the top of the editor window, you should see two drop-down boxes: (General) and (Declarations). Change the (General) combo box to be 'Workbook.' This will give you method called WorkbookOpen. Code placed in this method will execute when you open the Excel Workbook. Conclusion: Hope after reading the article you are able to recover your missing sheet tabs in Excel. I tried my best to provide the complete information about how to recover the missing or hidden sheet tabs in Microsoft Excel.
A workbook is a file that contains one or more worksheets to help you organize data. You can create a new workbook from a blank workbook or a template.
Does anyone know how to simply open and close an Excel workbook? I don't need to read any data from the file, I just need to open and close it. (.) I'm guessing that I'll need to reference the Microsoft.Office.Interop.Excel assembly.
Newer versions Office 2010
Create a workbook
- Open Excel.
- Select Blank workbook or press Ctrl+N.
- Start typing.
Create a workbook from a template
- Select File > New.
- Double-click a template.
- Click and start typing.
Open a new, blank workbook
- Click the File tab.
- Click New.
- Under Available Templates, double-click Blank Workbook.Keyboard shortcut To quickly create a new, blank workbook, you can also press CTRL+N.
Tips:
- By default, a new workbook contains three worksheets, but you can change the number of worksheets that you want a new workbook to contain.For more information, see Change the number of worksheets in a new workbook.
- You can also add and remove worksheets as needed.For more information about how to add or remove worksheets, see Insert or delete a worksheet.
Base a new workbook on an existing workbook
- Click the File tab.
- Click New.
- Under Templates, click New from existing.
- In the New from Existing Workbook dialog box, browse to the drive, folder, or Internet location that contains the workbook that you want to open.
- Click the workbook, and then click Create New.
Base a new workbook on a template
- Click the File tab.
- Click New.
- Do one of the following:
- To use one of the sample templates that come with Excel, under Available Templates, click Sample Templates and then double-click the template that you want.
- To use a recently used template, click Recent Templates, and then double-click the template that you want.
- To use your own template, on the My Templates, and then on the Personal Templates tab in the New dialog box, double-click the template that you want.Note: The Personal Templates tab lists the templates that you have created. If you do not see the template that you want to use, make sure that it is located in the correct folder. Custom templates are typically stored in the Templates folder, which is usually C:Usersuser_nameAppDataLocalMicrosoftTemplates in Windows Vista, and C:Documents and Settingsuser_nameApplication DataMicrosoftTemplates in Microsoft Windows XP.
Tip: To obtain more workbook templates, you can download them from Microsoft Office.com. In Available Templates, under Office.com Templates, click a specific template category, and then double-click the template that you want to download.
Need more help?
You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.
See Also
Active4 years, 6 months ago
I have an Excel file with 5 worksheets and I want with c# code to open it and when it is opened I want the sheet number 3 to be activated.
How can I do that?
ErezErez
2,94799 gold badges6262 silver badges113113 bronze badges
4 Answers
Tony The LionTony The Lion41.6k5353 gold badges203203 silver badges365365 bronze badges
Rubens FariasRubens Farias50.6k55 gold badges116116 silver badges153153 bronze badges
If wanting to present visual feedback to the User, these two statements will set the activated sheet and select the range accordingly:
Consider including the following statement immediately prior to initializing the Excel.Range..
// Set Active sheet in Excel
excelWorksheet.Activate()
Also consider the following statement immediately after initializing the Excel.Range..
// Set Active range in Excel
excelCell.Activate()
user261875user261875
Microsoft Excel Worksheets For Students
MakatunMakatun