你是不问过吗?Dim s1()As String = {"M1", "M2", "M3", "M4", "M5", "M6", "M7", "M8", "M9", "M10", "M11", "M12"}
Dim s2()As String = {"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" }
Dim s As String = "编号|38|年|38|项目ID|118|M1|50|M2|50|M3|50|M4|50|M5|50|M6|50|M7|50|M8|50|M9|50|M10|50|M11|50|M12|50"
For i As Integer = 0 To s1.length - 1
s = s.replace("|" & s1(i) & "|", "|" & s2(i) & "|")
Next
msgbox(s)