Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Delete certain text from cells
I have a column of data (50 cells), with some cells blank. In certain of the cells, there is a dash that separates the first word in the cell, and the remaining letters/text (actually it is a blank/-/blank). I would like VBA that would delete everything after the first word in the cell (and this word can vary in length). Any ideas?
Thanks in advance. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Delete certain text from cells
Hi,
Am Wed, 30 Jan 2013 18:12:03 +0000 schrieb ukat101052: I have a column of data (50 cells), with some cells blank. In certain of the cells, there is a dash that separates the first word in the cell, and the remaining letters/text (actually it is a blank/-/blank). I would like VBA that would delete everything after the first word in the cell (and this word can vary in length). Any ideas? home tab = Find & Select = Replace Find what: blank-blank* Replace with: Nothing Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
|
|||
|
|||
Thanks Claus-works beautifully!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Delete Certain Text From Cells | Excel Discussion (Misc queries) | |||
how can I delete cells containing text within a range of cells | Excel Discussion (Misc queries) | |||
Delete Repeating text in cells | Excel Discussion (Misc queries) | |||
macro to select cells containing specific text and delete all cells but these | Excel Programming | |||
Delete text in cells but keep formula | Excel Worksheet Functions |