ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Insert the same word at the start of a column of cells (https://www.excelbanter.com/excel-discussion-misc-queries/232991-insert-same-word-start-column-cells.html)

ann

Insert the same word at the start of a column of cells
 
I have a column of descriptions and want to insert the word Muratec in front
of each description. Does anyone know how to do this?
--
Thanks,
Ann

Don Guillett

Insert the same word at the start of a column of cells
 
try

Sub addtext()
For Each c In Range("e2"). _
Resize(Cells(Rows.Count, "e").End(xlUp).Row - 1)
c.Value = "Muratec " & c
Next c
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ann" wrote in message
...
I have a column of descriptions and want to insert the word Muratec in
front
of each description. Does anyone know how to do this?
--
Thanks,
Ann



ann

Insert the same word at the start of a column of cells
 
Where do I type in Sub addtext()
--
Thanks,
Ann


"Don Guillett" wrote:

try

Sub addtext()
For Each c In Range("e2"). _
Resize(Cells(Rows.Count, "e").End(xlUp).Row - 1)
c.Value = "Muratec " & c
Next c
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ann" wrote in message
...
I have a column of descriptions and want to insert the word Muratec in
front
of each description. Does anyone know how to do this?
--
Thanks,
Ann




Don Guillett

Insert the same word at the start of a column of cells
 
If you're new to macros, you may want to read David McRitchie's intro
at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ann" wrote in message
...
Where do I type in Sub addtext()
--
Thanks,
Ann


"Don Guillett" wrote:

try

Sub addtext()
For Each c In Range("e2"). _
Resize(Cells(Rows.Count, "e").End(xlUp).Row - 1)
c.Value = "Muratec " & c
Next c
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ann" wrote in message
...
I have a column of descriptions and want to insert the word Muratec in
front
of each description. Does anyone know how to do this?
--
Thanks,
Ann






All times are GMT +1. The time now is 06:40 PM.

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