data type problem XL9
Have come across a strange problem today with one of my customers.
In a .xla add-in I have in very much simplified code the following:
Sub test()
Dim l As Long
l = GiveString()
MsgBox l
End Sub
Function GiveString() As String
Dim s As String
s = "1"
GiveString = s
End Function
All this works fine on my 2 home PC's with XL11 and XL9.
With this one customer though in XL9 there is the error: Type mismatch.
Why would this be if it runs fine on the home machine with XL9?
RBS
|