Inserting Worksheets
Closed
Neo
-
27 May 2010 à 10:51
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 27 May 2010 à 16:49
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 27 May 2010 à 16:49
Related:
- Inserting Worksheets
- How to split excel sheet into multiple worksheets - Guide
- Worksheets add vba - Guide
- Inserting a tick in word - Guide
- Excel compare two worksheets - Guide
- Inserting emoticons in outlook - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
27 May 2010 à 16:49
27 May 2010 à 16:49
Yeah. You have to add a code to book. So when ever you open the book it looks if the sheet for that day is there or not. If not, it adds one
1. Press ALT + F11
2. PRESS CTRL + R
3. Double click on "ThisWorkbook"
4. Paste the code
1. Press ALT + F11
2. PRESS CTRL + R
3. Double click on "ThisWorkbook"
4. Paste the code
Private Sub Workbook_Open()
Dim sTodaySheet As String
Err.Clear
sTodaySheet = Format(Now, "YYYY MM DD")
On Error Resume Next
Sheets(sTodaySheet).Select
On Error GoTo 0
If ActiveSheet.Name = sTodaySheet Then Exit Sub
Sheets.Add
ActiveSheet.Name = sTodaySheet
End Sub