Hi,
I'd like to find a way (trick) to exceptionally call a VBA build-in function that is overwritten with a custom function. Excel 2010 64bit
For instance if I want to write my own UBound function with the same name, but in that function be able to call the VBA build-in function UBound.
something like: (not working code!)
I'd like to find a way (trick) to exceptionally call a VBA build-in function that is overwritten with a custom function. Excel 2010 64bit
For instance if I want to write my own UBound function with the same name, but in that function be able to call the VBA build-in function UBound.
something like: (not working code!)
Code:
Function UBound(xArray) As Integer
On Error Resume Next
If LBound(xArray) <= UBound(xArray) Then '''array is allocated
v= callToBuildInUBound(xArray) '''' ?????
Else '''no error in UBound anymore
v= -1
End If
UBound=v
End Function