Assuming the data to removed is always the last bracketed data, this will do the job:
Option Explicit
Sub Macro2()
'Written by Trebor76
'Visit my website www.excelguru.net.au
'Remove last bracketed contents as well as the brackets
'http://www.excelforum.com/excel-programming-vba-macros/954524-macro-to-delete-certain-data-in-a-cell.html
Dim intCellPos As Integer
Dim rngCell As Range
Application.ScreenUpdating = False
For Each rngCell In Range("C1:C" & Range("C" & Rows.Count).End(xlUp).Row)
For intCellPos = Len(rngCell) To 1 Step -1
If Mid(rngCell, intCellPos, 1) = "(" Then
intMyLen = intMyLen + 1
rngCell = Left(rngCell, Len(rngCell) - intMyLen)
rngCell = Application.WorksheetFunction.Substitute(rngCell, "(", "")
rngCell = Application.WorksheetFunction.Substitute(rngCell, ")", "")
intMyLen = 0
Exit For
Else
intMyLen = intMyLen + 1
End If
Next intCellPos
Next rngCell
Application.ScreenUpdating = True
MsgBox "Process is complete.", vbInformation, "Excel Guru"
End Sub
Regards,
Robert
Bookmarks