ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Add character before 1st letter of string (https://www.excelbanter.com/excel-programming/348690-add-character-before-1st-letter-string.html)

al007

Add character before 1st letter of string
 
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


Leith Ross[_403_]

Add character before 1st letter of string
 

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

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


Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=49537



All times are GMT +1. The time now is 12:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com