LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Program not working after upgrade

Are there any apostrophe's or spaces, if so see
http://support.microsoft.com/?id=107468

Regards,
Sandy

-----Original Message-----
Yes I did. Thanks for the suggestion. I believe the

code
is correct. It's the error message that pops up when
opening the book that is causing the problem.

BEGIN ERROR MESSAGE

Errors were detected in [filename] but Microsoft Excel

was
able to open the file by making the repairs listed

below.
Save the file to make these repairs permanent.

Renamed invalid sheet name.

END ERROR MESSAGE

I'm now trying to find out how to prevent this message
from popping up (there is nothing wrong with the "sheet
name").

-----Original Message-----
Have you tried recording a macro whilst manually opening
your file, then compare new vs the old (including
reportDate).

To be sure code each into cells, and in another try
=A1=A2

Regards,
Sandy

-----Original Message-----
The following line of code worked before I was upgraded

to
Windows XP and Excel 2002.

Workbooks.Open
Filename:="C:\Inetpub\wwwroot\BCC\documents\200 4_E_M_Cal

e
n
d
ar_" & reportDate & ".xls"

The program stops at the above line with the message:

Run-time error '1004':

Method 'Open' of object 'Workbooks' failed

The rest of the program works if I manually open the
workbook and continue with the rest of the code. Any
suggestion is appreciated. Thanks.
.

.

.

 
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
macro stopped working after upgrade to 2007 mohavv Excel Discussion (Misc queries) 1 June 16th 09 01:38 AM
Excel is not working (may be a program file damaged) antonio Setting up and Configuration of Excel 9 June 6th 09 04:33 PM
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
=networkdays formula was working, but not in upgrade to 2003 bakercenter Excel Worksheet Functions 2 March 27th 06 11:04 PM
working with excel and other program fal Excel Discussion (Misc queries) 1 July 8th 05 12:32 PM


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