第1个回答 推荐于2016-06-14
Private Sub Command1_Click()
Dim a(), b(), c() As String, n, s, i
n = 0
Open "c:\1.txt" For Input As #1
While Not EOF(1)
Line Input #1, s
c = Split(s, "=")
If UBound(c) = 1 Then
ReDim Preserve a(n), b(n)
a(n) = Trim(c(0))
b(n) = Trim(c(1))
n = n + 1
End If
Wend
Close #1
Text2 = Text1
For i = 0 To n - 1
Text2 = Replace(Text2, a(i), b(i))
Next
End Sub本回答被提问者采纳