shahin
Active Member
It is perhaps a childlike problem but I can't manage to solve it. What I wish to do is replace quotes from the value of Range("A1"), so that the output becomes "HI THERE" to HI THERE.
I tried like below but it doesn't allow me to put a quotation mark within quotation mark:
Once again:
The value of Range("A1") = "HI THERE"
What I would like to see:
The value of Range("A1") = HI THERE
I tried like below but it doesn't allow me to put a quotation mark within quotation mark:
Code:
Sub remove_quotes()
Dim str_val As String
str_val = Replace(Range("A1").Value, " ", "") ''I attempted to do like """ changing the first quotation but couldn't
MsgBox str_val
End Sub
Once again:
The value of Range("A1") = "HI THERE"
What I would like to see:
The value of Range("A1") = HI THERE
Last edited: