Solved
Forum Discussion
HKosova
Alumni
10 years agoHi Jack,
If a value contains apostrophes, you need to wrap it in quotes instead of apostrophes:
Value = "A Midsummer Night's Dream" TempStr = "//*[@title=" & Chr(34) & Value & Chr(34) & "]"
' This is the same as TempStr = "//*[@title=""A Midsummer Night's Dream""]"
jack_edwards
10 years agoOccasional Contributor
It works! Thanks for the help.