david7777777777
Programmer
Someone gave me this script but I have yet to figure out what the first quote mark is for. I can read and understand this script, but I cannot figure out why there are a total of 3 single quote marks seemingly being inserted by this line:
curntcell.Value = "'" & "'" & curntcell.Value & "'"
...but it works perfectly and the cell contents suddenly have single quotes around them after running this script. What's that extra single quote mark for in the script? Thanks.
SCRIPT:
Sub quotes()
Dim curntcell As Object
For Each curntcell In Selection
curntcell.Value = "'" & "'" & curntcell.Value & "'"
Next curntcell
End Sub
curntcell.Value = "'" & "'" & curntcell.Value & "'"
...but it works perfectly and the cell contents suddenly have single quotes around them after running this script. What's that extra single quote mark for in the script? Thanks.
SCRIPT:
Sub quotes()
Dim curntcell As Object
For Each curntcell In Selection
curntcell.Value = "'" & "'" & curntcell.Value & "'"
Next curntcell
End Sub