Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell text based on 4 condition test | Excel Worksheet Functions | |||
Wrap text limits in Excel 2003 cell formatting | Excel Discussion (Misc queries) | |||
Text wider than one cell is not displayed in the next empty cell | Excel Discussion (Misc queries) | |||
Moving text from one cell to another. | Excel Worksheet Functions | |||
Formatting a cell as "text" in the number catagory. | Excel Worksheet Functions |