Stuck. I need some VBA code to insert double-quotes around strings in each cell in an excel range.
Posted
by cmm
on Stack Overflow
See other posts from Stack Overflow
or by cmm
Published on 2010-05-17T21:23:59Z
Indexed on
2010/05/17
21:31 UTC
Read the original article
Hit count: 121
excel-vba
I'm familiar with VB.NET, but VBA in excel has me stumped. With my best attempt, I get a "Type mismatch" error:
Sub AddQuotes()
For Each x In Range("List").Cells x.Text = "*" * " & x.text & " & "*" Next
End Sub
© Stack Overflow or respective owner