Insert Quatation Mark "

  • Thread starter Thread starter gloriel7
  • Start date Start date
G

gloriel7

How can i insert quotation mark ( " or "" )
in each cell. any macro?
i.e.
A-WALL becomes "A-WALL"
A-COLUMN becomes "A-COLUMN" :(
 
try something like
Dim start As String
Dim newName As String
Dim label As String

Dim i As Integer


For i = 1 To 10

With Worksheets("trial")
start = .Range("a1").Offset(i, 0)
label = """"
newName = start
Range("a1").Offset(i, 0) = label & start & label

End With

Next i
 
Sorry didn't check what I posted until I got to work you can get rid of that
newName bit as it does nothing

----------------
Dim start As String
Dim label As String
Dim i As Integer

For i = 1 To 10 ' change this bit on where you want the change to occur
(i.e define your range to your needs)

With Worksheets("trial")
start = .Range("a1").Offset(i, 0)
label = """"
Range("a1").Offset(i, 0) = label & start & label
End With

Next i

--------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top