Advertisement

07.17.2008 at 04:58PM PDT, ID: 23575358
[x]
Attachment Details

text in Filename string for File save

Asked by Ayansane in Microsoft Excel Spreadsheet Software, XPath

Tags: ms, Excel 2003, excel 2003, Excel automation with Macros and VB codes

Hello,
Could someone please look at this code.  I think I'm doing something wrong and its hanging..  Thanks

Sub Publish()
    XPath = "C:\2  - Palliative\Q108\"&Range("F12").Value&".xls"

    Application.DisplayAlerts = False                      
    ActiveWorkbook.SaveAs (XPath)
    ActiveWorkbook.Close
End Sub Start Free Trial
1:
2:
3:
4:
5:
6:
7:
Sub Publish()
    XPath = "C:\2  - Palliative\Q108\"&Range("F12").Value&".xls"
 
    Application.DisplayAlerts = False                      
    ActiveWorkbook.SaveAs (XPath)
    ActiveWorkbook.Close
End Sub
[+][-]07.17.2008 at 05:06PM PDT, ID: 22031457

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.

 
[+][-]07.17.2008 at 05:10PM PDT, ID: 22031478

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.

 
[+][-]07.17.2008 at 05:13PM PDT, ID: 22031492

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.

 
[+][-]07.17.2008 at 05:21PM PDT, ID: 22031530

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.

 
[+][-]07.17.2008 at 11:43PM PDT, ID: 22033282

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Excel Spreadsheet Software, XPath
Tags: ms, Excel 2003, excel 2003, Excel automation with Macros and VB codes
Sign Up Now!
Solution Provided By: saurabh726
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.18.2008 at 09:45AM PDT, ID: 22037672

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.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628