Macro not working with an error sub or function not defined

ghrek

Active Member
Joined
Jul 29, 2005
Messages
426
Hi

I have the following macro and it says "sub or function not defined"??

Any Ideas?

'
VBA Code:
Sub J99653
Dim Arr(), Dict As Object, Col As String, Str As String, Valu As Long, i As Long
Set Dict = CreateObject("Scripting.Dictionary")
Arr = Cells(1).CurrentRegion.Value
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
    Valu = Range("E2")
    EvaluateNumbers Arr, Dict, Str, Valu, 1
    If Str <> "" Then
        Range(Str).Interior.Color = vbGreen
    End If
    Str = ""
Next i
End Sub
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Any Ideas?
Well, you have line in that code that says ...
VBA Code:
EvaluateNumbers Arr, Dict, Str, Valu, 1
.. and we/Excel have no idea what EvaluateNumbers is? presumably that is why you are getting that message.
 
Upvote 0
VBA Code:
EvaluateNumbers Arr, Dict, Str, Valu, 1

I'm not even sure it is referring to a function either
 
Upvote 0
Just worked out that tis is a call to another Sub

VBA Code:
EvaluateNumbers Arr, Dict, Str, Valu, 1
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,996
Members
449,093
Latest member
masterms

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top