I have a UDF(User-Defined Function) in VBA that needs to modify cell range on Excel.
Since a UDF cannot do this, I tried using Event calls.
When I raise a
If call other function with Application.Evaluate method in your UDF function
you can change everything on sheet (Values,Steel,Etc.) because VBA does not know which function is called.
Example:
Sub UDFfunction()
Evaluate "otherfunc(""abc"")"
End Sub
Public Function otherfunc(ByVal str As String)
ActiveSheet.Cells(1, 1).Value = str
End Function