Microsoft
Software
Hardware
Network
Question : Why does opening a file in Excel affect the same file in VB.net?
Hello Everyone
I open 3 RANDOM files in VB.Net.
From VB.Net I open an Excel Application.
The Excel Application opens the SAME files.
The Excel Application reads a couple of things from these files and then QUITS - closing the files
But when the process returns to VB.NET, JUST ONE of the files gives me an error indicating that one of the variables is of the wrong data type.
How can this be?
It wasn't of the wrong data type before passing through Excel. It was absolutely fine!
And yet, Excel did not write anything to this file. It just read a few variables.
Any ideas?
Thank you.
Answer : Why does opening a file in Excel affect the same file in VB.net?
Can you post your code?
If you are using something like this:
fHnd = Freefile
Open <first file> For Random As fHnd ...
Open <next file> For Random As fHnd ...
without calling FreeFile a second time, you will be using the same file handle.
Random Solutions
Fortigate 60 - Webfiltering - allow some users
combo box won't hold default value
454 5.7.3 Client does not have permission to submit mail to this server
Domain trust between Windows Server 2008 R2 and Windows Server 2003
Looking for software to mirror two external hard drives.
Configuring Exchange 2010 to receive emails for other domains
jQuery Chained Select Boxes - Three Tiered ( third tier selected )
Strip off double quotes from string and replace with single quote
Ways to merge files in linux
VB.Net 2010: ResourceManager.GetObject fails with silent exception on x64