ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   replacing text in all cells with existing text plus something (https://www.excelbanter.com/excel-discussion-misc-queries/53320-replacing-text-all-cells-existing-text-plus-something.html)

avi2001

replacing text in all cells with existing text plus something
 
Hi,
I have a sheet with several rows and columns containing text. I would like
to add similar text to all the cells after the existing text. Is there an
easy way to do that?

thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc

Paul B

replacing text in all cells with existing text plus something
 
avi2001, you could use a macro something like this,

Sub AddText()
Application.ScreenUpdating = False
For Each c In Range("A2:C25") 'change to your range
c.Value = c & " your text here"
Next
Application.ScreenUpdating = True
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"avi2001" wrote in message
...
Hi,
I have a sheet with several rows and columns containing text. I would like
to add similar text to all the cells after the existing text. Is there an
easy way to do that?

thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc




Don Guillett

replacing text in all cells with existing text plus something
 
try
for each c in selection
c.value=c &" blah blah blah"
next

--
Don Guillett
SalesAid Software

"avi2001" wrote in message
...
Hi,
I have a sheet with several rows and columns containing text. I would like
to add similar text to all the cells after the existing text. Is there an
easy way to do that?

thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow

this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.


http://www.microsoft.com/office/comm...lic.excel.misc




All times are GMT +1. The time now is 06:48 AM.

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