Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to create an array based on the names of the worksheets in a
workbook, using the index as the variable. I keep getting a "constant" error, can I create a array this way? Sub test2() Dim wrksht(num) Dim num As Byte Dim WS As Worksheet num = ActiveWorkbook.Worksheets.Count For Each WS In Worksheets wrksht(num) = WS.name + 1 Range("A10").Formula = wrksht(num) ActiveCell.Offset(1, 0).Select Next WS End Sub THANK YOU!! -- Jack of all trades... master of none.. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CREATING FORMULA IN ONE WORKSHEET BASED ON MULTIPLE CRITERIA IN AN | Excel Worksheet Functions | |||
Creating/Naming New Worksheets Based on Select Cells in Master Worksheet | Excel Worksheet Functions | |||
Creating an Index | Excel Worksheet Functions | |||
Creating and Index with worksheet names | Excel Discussion (Misc queries) | |||
Creating a worksheet with values based on a control cell | Excel Programming |