Advertisement

09.22.2008 at 08:07AM PDT, ID: 23751628 | Points: 500
[x]
Attachment Details

xlWorkbook.Close(SaveChanges:=False)          does not work, file name too long?

Asked by AidenA in Microsoft Excel Spreadsheet Software, Visual Studio

Tags:

As the title suggest, the code ExcelWorkbook.Close(SaveChanges:=False) is not working.

I've never had any problems with this code before. But recently I have come across some file names which are very long (about 130 characters including white space). I checked a few times to see whether the code worked if I shortened the name, and it did. So, it appears that a large file name is causing this code to fail.

So, the question is... why is that happening, and how do I get around it (considering I don't want to simply change the file name or things like this)

Any ideas?

Thanks, AidenStart Free Trial
[+][-]09.22.2008 at 06:52PM PDT, ID: 22545766

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 01:12AM PDT, ID: 22547218

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 04:08PM PDT, ID: 22555029

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 02:57AM PDT, ID: 22558151

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2008 at 10:58PM PST, ID: 23058837

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628