0
点赞
收藏
分享

微信扫一扫

VBA-5: 读写txt

梦为马 2022-02-21 阅读 35
经验分享

写入

v=1011
Shell ("cmd.exe /S /C echo " + CStr(v) + ">a.txt")

Application.Wait (Now + 0.000001)

读取

Open "a.txt" For Input As #1
Line Input #1, txt

MsgBox txt
Close #1
举报

相关推荐

0 条评论