I need to extract only the email from a spreadsheet in Excel. I\'ve found some example VBA code here at this StackOverflow link, courtesy of Portland Runner
When You return strInput You just get the same string as the input. You need to return Value that has been found using RegExp.
Try
Set matches = regEx.Execute(strInput) simpleCellRegex = matches(1).Value
Instead of
simpleCellRegex = regEx.Replace(strInput, strReplace)