Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default Error opening file

This code sequence worked fine sometime ago, but not now.

ChDir "C:\BofQProject\QSBofQ\"
Workbooks.Open Filename:="NewQSBofQ.xls", _
Editable:=False

The error is reporting that the file could not be found, and yet it is
clearly there. The path and filename are correct.

What might be happening, please?

Regards.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default Error opening file

Just a little further information:

I copied the filename (without quotes) from the code,
clicked StartSearchAll files and folders and then pasted it into the box.
Clicked Search.

It listed the file in: C:\BofQProject\QSBofQ.


"Stuart" wrote in message
...
This code sequence worked fine sometime ago, but not now.

ChDir "C:\BofQProject\QSBofQ\"
Workbooks.Open Filename:="NewQSBofQ.xls", _
Editable:=False

The error is reporting that the file could not be found, and yet it is
clearly there. The path and filename are correct.

What might be happening, please?

Regards.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Error opening file

Maybe you were on a different drive.

I'd add:
chdrive "C:"
before the chdir line.

Stuart wrote:

Just a little further information:

I copied the filename (without quotes) from the code,
clicked StartSearchAll files and folders and then pasted it into the box.
Clicked Search.

It listed the file in: C:\BofQProject\QSBofQ.

"Stuart" wrote in message
...
This code sequence worked fine sometime ago, but not now.

ChDir "C:\BofQProject\QSBofQ\"
Workbooks.Open Filename:="NewQSBofQ.xls", _
Editable:=False

The error is reporting that the file could not be found, and yet it is
clearly there. The path and filename are correct.

What might be happening, please?

Regards.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolve Error in opening Excel File zip file from a CD? rw5400 Excel Discussion (Misc queries) 1 March 17th 10 03:41 PM
Error opening edited XML file - Where is the error log? JonBoy Excel Discussion (Misc queries) 0 March 10th 09 09:40 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
Error:Invalid File format,while opening an Excel Template file Saurabh Excel Programming 1 January 17th 05 07:15 AM
excel opening file error Firemedic395 Excel Discussion (Misc queries) 2 December 8th 04 05:50 PM


All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"