tags:

views:

86

answers:

1

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

+1  A: 

Try using chr(34) for the double-quote character

eg chr(34) & x.text & chr(34)

Tom Womack
Yes, this works - when I change .text to .valueThanks!
cmm