vba中数据替换
发布网友
发布时间:2022-05-06 00:59
我来回答
共1个回答
热心网友
时间:2022-06-28 10:24
Public Sub Test()
Dim sPath As String
Dim iFile As Long
Dim t As Integer
Dim strTemporary As String
t = 5 ' 计算出t的具体数值
strTemporary = "(10," & CStr(t) & ",5)"
sPath = "D:\Temporary.txt"
iFile = FreeFile()
Open sPath For Append As #iFile
Print #iFile, strTemporary
Close #iFile
End Sub