这不是一个录制宏就可以解决的事情么?
Sub Macro1()
Columns("B:B").Select
Selection.Replace What:="一组一班", Replacement:="一组", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=False, SearchFormat:=True, ReplaceFormat:=True
Selection.Replace What:="一组五班", Replacement:="一组", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=False, SearchFormat:=True, ReplaceFormat:=True
Columns("C:C").Select
Selection.Replace What:="集团规划部", Replacement:="集团", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=False, SearchFormat:=True, ReplaceFormat:=True
Selection.Replace What:="集团制造部", Replacement:="集团", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=False, SearchFormat:=True, ReplaceFormat:=True
Range("D1").Select
End Sub
|