Thread
:
Q to Automate Removal of Characters from Cells
View Single Post
#
8
Posted to microsoft.public.excel.programming
Claus Busch
external usenet poster
Posts: 3,872
Q to Automate Removal of Characters from Cells
Hi,
Am Sat, 25 Jul 2015 03:18:59 -0700 (PDT) schrieb
:
Correct, but that was after 'manual' adjustment, I'll be adding again to the column next week. i.e. I copy/paste from a flat file, hence the " EURO etc etc
then try:
Sub Replace()
Dim LRow As Long
Dim rngC As Range
LRow = Cells(Rows.Count, 4).End(xlUp).Row
For Each rngC In Range("D2:D" & LRow)
If InStr(rngC, "-") Then
rngC = Mid(rngC, InStr(rngC, "-"))
End If
Next
End Sub
Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
Reply With Quote
Claus Busch
View Public Profile
Find all posts by Claus Busch