How do I populate worksheet tabs via a formula or macros?
Closed
Tam
-
May 18, 2015 at 01:08 PM
vcoolio Posts 1404 Registration date Thursday July 24, 2014 Status Moderator Last seen September 15, 2023 - May 19, 2015 at 07:11 AM
vcoolio Posts 1404 Registration date Thursday July 24, 2014 Status Moderator Last seen September 15, 2023 - May 19, 2015 at 07:11 AM
Related:
- How do I populate worksheet tabs via a formula or macros?
- How do you add a username or author to a worksheet - Guide
- How to close tabs on android - Guide
- Transfer data from one excel worksheet to another automatically formula - Guide
- Macros in excel download - Download - Spreadsheets
- Logitech formula vibration feedback wheel driver - Download - Drivers
1 response
vcoolio
Posts
1404
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
September 15, 2023
259
May 19, 2015 at 07:11 AM
May 19, 2015 at 07:11 AM
Hello Tam,
You could try the following code:-
Enter the code in a standard module. The code extracts the sheet names from a list in Column A, Sheet1.
Attached is my test work book for you to peruse:-
https://www.dropbox.com/s/ux5rpqzy59v5o9x/Create%20and%20Name%20New%20Sheets.xlsm?dl=0
I hope that this helps.
Cheerio,
vcoolio.
You could try the following code:-
Sub NewSheetAndNames() Dim ws As Worksheet Dim x As Integer x = 1 Do While Sheets("Sheet1").Cells(x, 1).Value <> "" Set ws = Sheets.Add ws.Name = Sheets("Sheet1").Cells(x, 1).Value x = x + 1 Loop End Sub
Enter the code in a standard module. The code extracts the sheet names from a list in Column A, Sheet1.
Attached is my test work book for you to peruse:-
https://www.dropbox.com/s/ux5rpqzy59v5o9x/Create%20and%20Name%20New%20Sheets.xlsm?dl=0
I hope that this helps.
Cheerio,
vcoolio.