希望能帮到你
Public Function ReadTxt(ByVal filepath)
Const ForReading=1, ForWriting=2, ForAppending=8
Dim fso,fil,MyArray
Set fso=CreateObject("Scripting.FileSystemObject")
Set fil = fso.OpenTextFile(filepath,ForReading)
Do While Not fil.AtEndOfLine
MyArray=Split(fil.ReadLine,"=",-1,1)
AutoCalcTest trim(MyArray(0)),trim(MyArray(1))
Loop
fil.Close
Set fil=Nothing
Set fso=Nothing
End Function