#1   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default Add text to cell


Hiya guys and gals,

How can I create a Macro that when i select a range of sells will add a
predifined text to the end of the text already in each selected cell.

I konw this is possible and have tried lots of variants of code, all
turning out to be incorrect.

Kind Regards

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=515405

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Add text to cell

Sub AddText()
For Each cell In selection
cell.Value = "cell.value & "more text"
Next cell
End SUb

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"superkopite"
wrote in message
...

Hiya guys and gals,

How can I create a Macro that when i select a range of sells will add a
predifined text to the end of the text already in each selected cell.

I konw this is possible and have tried lots of variants of code, all
turning out to be incorrect.

Kind Regards

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile:

http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=515405



  #3   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default Add text to cell


Thanks a lot Bob

There was an extra " in there but when i removed it it worked
fantastically

Cheers

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=515405

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Add text to cell

so there was, sorry about that.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"superkopite"
wrote in message
...

Thanks a lot Bob

There was an extra " in there but when i removed it it worked
fantastically

Cheers

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile:

http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=515405



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell text based on 4 condition test Bob Wall Excel Worksheet Functions 3 November 16th 05 07:34 PM
Wrap text limits in Excel 2003 cell formatting Adelrose Excel Discussion (Misc queries) 1 April 19th 05 06:32 PM
Text wider than one cell is not displayed in the next empty cell Len Pace Excel Discussion (Misc queries) 5 February 18th 05 12:24 AM
Moving text from one cell to another. estaban botas Excel Worksheet Functions 1 December 15th 04 02:04 PM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM


All times are GMT +1. The time now is 04:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"