Hey,
I am just trying to understand the principle of the where and how many quotes I should put when using worksheetfunction in vba. For instance, in this code
ton = Evaluate("SUBSTITUTE(A1,""mon"",""mir"")") I have put double quotes by mon and mir otherwise it does not function (with single quotes) and I dont know why??
I have seen many codes with worksheetfunctions like .Value = Evaluate("IF(" & .Address & " = """","""",Text(" & .Address & ",""" & strFormat & """))"). I can understand the forumla used but not the principle of using the quotes?
Any help is appreciated.
I am just trying to understand the principle of the where and how many quotes I should put when using worksheetfunction in vba. For instance, in this code
ton = Evaluate("SUBSTITUTE(A1,""mon"",""mir"")") I have put double quotes by mon and mir otherwise it does not function (with single quotes) and I dont know why??
I have seen many codes with worksheetfunctions like .Value = Evaluate("IF(" & .Address & " = """","""",Text(" & .Address & ",""" & strFormat & """))"). I can understand the forumla used but not the principle of using the quotes?
Any help is appreciated.