reading entire text file using vba

前端 未结 8 1288
暗喜
暗喜 2020-12-06 11:03

I\'m trying to read a text file using vba. I tried the below code

Open \"C:\\tester.txt\" For Input As #1
Worksheets(\"UI\").Range(\"H12\").Value = Input$(LO         


        
8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 11:29

    I think an easier alternative is Data > From Text and you can specify how often the data is refreshed in the Properties.

提交回复
热议问题