Here is a bitof my script. It runs once just fine but if i run it a second time before shutting down the workbook I get an error "File already in open" on line 1. Which file and how can i close it?
Open "C:\Users\test user\AppData\test.txt" For Input As #1
Do While Not EOF(1)
Line Input #1 , ltxt
If ltxt = "bob b" Then GoTo xit
Loop
Close #1
thanks...
Open "C:\Users\test user\AppData\test.txt" For Input As #1
Do While Not EOF(1)
Line Input #1 , ltxt
If ltxt = "bob b" Then GoTo xit
Loop
Close #1
thanks...