Thanks everyone for helping. Not sure how to attach the excel file. If there is a way please let me know
here is the code in the VB components that I have. I can see that you produced a component on the fly and tested it, which is something I can test as well. But if you want add my custom made function to your excel file as well and test as well
Function Concat2(myRange As Range, Optional myDelimiter As String) Dim r As Range Application.Volatile For Each r In myRange If Len(r.Text) > 0 Then Concat2 = Concat2 & r & myDelimiter End If Next r If Len(myDelimiter) > 0 Then Concat2 = Left(Concat2, Len(Concat2) - Len(myDelimiter)) End If End Function
One thing that I just noticed which might be causing problem is Application.volatile. Let me search a bit on that to see if it is causing problems.Thanks very much for your assistance again
In reply to Re^2: Excel OLE cell value custome pre-defined predefined function formula error
by pooTan
in thread Excel OLE cell value custome pre-defined predefined function formula error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |