Add character before 1st letter of string

A

al007

How can I add character e.g: ' before 1st letter of words in selected
cells (multiple selection).
Can anybody help pls ( as I would like to convert some numbers into
text format)
Thxs
 
L

Leith Ross

Hello al007,

Here's how...

Code
-------------------

Sub Test()

Dim Rng As Range

Set Rng = Application.Selection

For Each Cell In Rng
Cell.Value = "'" & Cell.Value
Next Cell

End Sub
 

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

Top