I have a spreadsheet in which a column has string data (names) followed by numbers in parentheses; i.e., (9815536). These numbers are not constant in length. I need to get rid of the numbers in the parentheses and the parentheses. I've tried using Columns().Cells.Replace funtion to no avail. Is there a way to use a regular expression to do this? A cell example would look like:
Column A
John Doe (9815536)
Sam Smith (12906)
...
Code I've tried looks like:
Columns("A:A").Select
Selecton.Replace What:="\([0-9]*\), _
Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, _
MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False