Jun 26 2018 06:21 AM
Can I use a list to auto fill sheet tabs instead of naming them one at a time?
Jun 26 2018 08:11 AM - edited Jun 26 2018 08:12 AM
Kelly-
Hope you're doing well. Yes, this is possible but you'll need to use VBA:
Sub Test() Dim Lrow As Integer
Dim intLp As Integer Lrow = Sheets("MySheetNames").Cells(Rows.Count, "A").End(xlUp).Row For intLp = 2 To Lrow Sheets.Add After:=Sheets(Sheets.Count) Sheets(ActiveSheet.Name).Name = Sheets("MySheetNames").Range("A" & intLp) Next intLp End Sub
Jun 26 2018 09:56 AM
Thank you I will attempt that after lunch. :)
Jun 26 2018 11:07 AM
Getting error here
Sheets(ActiveSheet.Name).Name = Sheets("MySheetNames").Range("A" & intLp)
Jun 26 2018 11:12 AM
Jun 26 2018 11:13 AM
Yes, that was my first mistake. :) I stepped through it and have an error show up at that line.
Jun 26 2018 11:17 AM
Well I'll do a compare, I copied yours and replaced mine and it worked, so thank you.
I'll checkout the difference when I got time, now I'm being pulled in a million directions. :)
Thank you again!