LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening an excel file with VB within Excel 2000 with or without the .xls suffix

I wrote a series of VB macros in May this year where I
would open an excel file sometimes with a ".xls" extension
and sometimes without.

Code variations looked like this:
Workbooks.Open Filename:=("C:\test.xls")
Workbooks.Open Filename:=("C:\test")

Both versions of code worked fine for 6 months.

Then in October any that did not have a ".xls" could not
be found, even though the code was not changed in any way
nor was the software version. eg. Workbooks.Open Filename:=
("C:\test")

So I changed all of the macros to include a ".xls"

Now in December, one of my macros cannot find a file
unless the ".xls" extension is removed, and I check the
file and made sure it was a standard excel 2000 workbook.

Does anyone know why this is happening as it defies logic?
 
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
Excel 2000 file in use when opening xls file htrajt Excel Discussion (Misc queries) 3 February 12th 08 12:55 PM
Excel 2000 - Trouble Opening File pbuc0109 Excel Discussion (Misc queries) 1 March 2nd 07 06:20 AM
Probelm opening an excel 2000 file in excel 2003 Mark Excel Discussion (Misc queries) 1 February 13th 06 07:47 AM
Excel 2000 shuts down after opening file thunderbird30 Setting up and Configuration of Excel 1 November 12th 05 03:14 PM
Problem opening .htm file from Excel 2000 Charles Jordan Excel Programming 3 December 1st 03 03:35 PM


All times are GMT +1. The time now is 01:45 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"