I would list ALL MY CODE ATTEMPTS but not enough space.
I’m trying to get a list of all worksheets in a workbook, but it would be in ascending order by worksheet.codename but only show a list of the worksheet.name in worksheet GE03.RANGE(“AH5:AH” & LDR_EH)
The examples I've seen actually alphabetically rearrange the worksheets, but I just want a list in GE03.RANGE(“AH5:AH” & LDR_EH).
worksheet.codename’s are 4 charters; two letters followed by two numbers ie GE03
The code I’m using for just a random list is…..
I’m trying to get a list of all worksheets in a workbook, but it would be in ascending order by worksheet.codename but only show a list of the worksheet.name in worksheet GE03.RANGE(“AH5:AH” & LDR_EH)
The examples I've seen actually alphabetically rearrange the worksheets, but I just want a list in GE03.RANGE(“AH5:AH” & LDR_EH).
worksheet.codename’s are 4 charters; two letters followed by two numbers ie GE03
The code I’m using for just a random list is…..
VBA Code:
Dim Ws As Worksheet
Dim x As Integer
Dim wbk As Workbook
Dim wbkName As String
x = 5
wbkName = ThisWorkbook.Name
Set wbk = Application.Workbooks(wbkName)
For Each Ws In wbk.Worksheets
GE03.Cells(x, 34) = Ws.Name
Next Ws