循环每一行数据,判断是否包含,如果包含,就去掉。如
Dim key = "abc"Dim str = "aaaabbbccccabc1234567901023"If str.contains(key) Then str = str.Substring(0, str.length-10)End Ifmsgbox(str)