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
sub main()
Workbooks.Open FileName:="C:\Documents and Settings\Jason\My Documents\1.csv"
a = Range("b8")
MsgBox (a)
Workbooks.Close
end sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for help guys
If that is the problem
goto
Windows Task Manager >> processes tab
find excel.exe
end process