• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Worksheet Function using VBA Macro [SOLVED]

webmax

Member
I have a below formula


Substitute(Mid(B6, Find("(", B6, 1) + 1, 99), ")", "")


when i run the same through macro using the below macro code it throws the error as Sub or Function not define. Need the solution for it.


Sub ss()

Range("B3").Formula = Application.WorksheetFunction.Substitute(Mid(B6, Find("(", B6, 1) + 1, 99), ")", "")


End Sub
 
Back
Top