Link to home
Start Free TrialLog in
Avatar of storkuk79
storkuk79

asked on

Phantom person using excel file

I have been programming a little VB referencing the excel library. I open the file using the workbooks.open command. Then i close it with workbooks.close command. however, after running this code, whenever i try to open the "1.csv" file now, it says that it is locked for editing, by 'another user'. what's going on?


sub main()

Workbooks.Open FileName:="C:\Documents and Settings\Jason\My Documents\1.csv"

a = Range("b8")
MsgBox (a)
Workbooks.Close
end sub
Avatar of cskang
cskang

One reason is that your application crashed or you ended it in debug mode before executing the Workbooks.close  .
If that is the problem
goto
Windows Task Manager >> processes tab
find excel.exe
end process
ASKER CERTIFIED SOLUTION
Avatar of gprassad
gprassad

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of storkuk79

ASKER

thanks for help guys