Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried the same thing and got a error. Go figure.
-- Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group Pearson Software Consulting, LLC www.cpearson.com (email on web site) "Norman Jones" wrote in message ... Hi Chip, ============ Dim wsDest as Sheets I don't think that will solve anything. ============ The following appeared to work for me: '========== Public Sub Tester() Dim wsDest As Sheets Dim i As Long Dim sStr As String sStr = "NI Insurer Market Share as at " _ & Format(Date, "yyyy-mmmm") Set wsDest = Workbooks(sStr).Sheets(Array( _ "PC (Chart)-NI-MONTH", _ "PC (Chart)-NI-YTD", _ "PC (Chart)-NI-R12", _ "HH (Chart)-NI-MONTH", _ "HH (Chart)-NI-YTD", _ "HH (Chart)-NI-R12", _ "CV (Chart)-NI-MONTH", _ "CV (Chart)-NI-YTD", _ "CV (Chart)-NI-R12")) For i = 1 To wsDest.Count Debug.Print wsDest(i).Name & vbTab _ & TypeName(wsDest(i)) Next i End Sub '<<========= --- Regards. Norman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
runtime error 13 - type mismatch error in Excel 97 on Citrix | Excel Programming | |||
xpath error? Runtime Error 13 type mismatch | Excel Discussion (Misc queries) | |||
Conditional Formatting - Run Time Error '13' Type Mismatch Error | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming |