Philosophaie
Active Member
- Joined
- Mar 5, 2010
- Messages
- 256
I want to know how to make a double quote, ", appear in a string of characters so I can use them in my VBA code.
Dim cell1 as Range
Dim cell2 as Range
Dim VBArange as String
cell1="A4"
VBAstring = "Range(" & """ & cell1 & """ & ")=1"
obviously the """ does not work. What I am looking for is a replacement to display the " in the Range.
Dim cell1 as Range
Dim cell2 as Range
Dim VBArange as String
cell1="A4"
VBAstring = "Range(" & """ & cell1 & """ & ")=1"
obviously the """ does not work. What I am looking for is a replacement to display the " in the Range.