线路输入错误优于VBA

时间:2017-03-29 08:21:08

标签: excel-vba vba excel

我遇到了这个编译错误:"预期:声明结束"我只是不明白为什么 代码:

Private Sub CommandButton8_Click()
Dim myFile As String, text As String, textline As String, posLat As Integer, posLong As Integer
myFile = "E:\output.txt"
myFile = Application.GetOpenFilename()
Open myFile For Input As #1
Do Until EOF(1)
       Line Input #1,textline
   text = text & textline
Loop
Close #1

End Sub

错误位于第34行;第3行输入,文本行" 请问有人帮帮我吗?

0 个答案:

没有答案