Hi,
I have a function that I am trying to run, however, it is not showing up on my Macro List. I have other Macros that are Subs showing up on my Macro List but no Functions. I have tried adding a Sub End Sub on either end of my Function but then the Macro wont get past the first line. The function looks like this:
Function flag_duplicates()
Dim value1 As Integer
Dim value2 As Integer
Dim toolid1 As String
Dim toolid2 As String
Dim Sum1 As String
Dim Sum2 As String
Total_VALUE = value1 + value2
If Total_VALUE = 0 Then
If id1 = id2 And product1 = product2 Then
flag_duplicates = "DUPLICATE"
Else
flag_duplicates = "--"
End Function
Thanks,
Justin
Bookmarks