W
Werner Rohrmoser
Hi,
the code below stops at the statement
"Res = WorksheetFunction.Match(ActiveWorkbook.Name, WbArray, 0)"
with Error Message: "Uable to get the Match property of the
WorksheetFunction class"
What's wrong?
WIN XP 5.1 SP1
Excel XP SP3
Regards
Werner
*****************************************************************************************************************
Public Sub Test()
Dim ArrayIndex As Integer
Dim Lastrow As Integer
Dim LoopCounter As Integer
Dim Res As Variant
Lastrow = WorksheetFunction.CountA(ArrayConstants.Range("A:A"))
ArrayIndex = 1
ReDim Preserve WbArray(Lastrow - 1)
For LoopCounter = 2 To Lastrow
WbArray(ArrayIndex) = ArrayConstants.Cells(LoopCounter, 1)
ArrayIndex = ArrayIndex + 1
Next LoopCounter
Res = WorksheetFunction.Match(ActiveWorkbook.Name, WbArray, 0)
MsgBox Test
End Sub
the code below stops at the statement
"Res = WorksheetFunction.Match(ActiveWorkbook.Name, WbArray, 0)"
with Error Message: "Uable to get the Match property of the
WorksheetFunction class"
What's wrong?
WIN XP 5.1 SP1
Excel XP SP3
Regards
Werner
*****************************************************************************************************************
Public Sub Test()
Dim ArrayIndex As Integer
Dim Lastrow As Integer
Dim LoopCounter As Integer
Dim Res As Variant
Lastrow = WorksheetFunction.CountA(ArrayConstants.Range("A:A"))
ArrayIndex = 1
ReDim Preserve WbArray(Lastrow - 1)
For LoopCounter = 2 To Lastrow
WbArray(ArrayIndex) = ArrayConstants.Cells(LoopCounter, 1)
ArrayIndex = ArrayIndex + 1
Next LoopCounter
Res = WorksheetFunction.Match(ActiveWorkbook.Name, WbArray, 0)
MsgBox Test
End Sub