+ Reply to Thread
Results 1 to 6 of 6

Save workbook to speciifc path

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Save workbook to speciifc path

    Hello everyone
    I need to fix the following code that open dialog to specific path to save a copy of the file in
    Please Login or Register  to view this content.
    I got error at this line
    Please Login or Register  to view this content.
    Any ideas?
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Save workbook to speciifc path

    I didn't get an error there, I got one at the
    Please Login or Register  to view this content.
    I commented it out, and the code seemed to run fine after I did.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Save workbook to speciifc path

    I commented this line out too
    Please Login or Register  to view this content.
    and still get the error at this line
    Please Login or Register  to view this content.
    Thanks for help

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Save workbook to speciifc path

    I am working with a blank sheet, that might be the reason I don't get an error at that line.
    Maybe move the .Execute to the next line and add an End If after it. And/or, you might need and else statement after the .Execute line, like Else Exit Sub maybe?
    Here is the code with the Else If added
    Please Login or Register  to view this content.
    Last edited by gmr4evr1; 08-08-2015 at 08:36 AM.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Save workbook to speciifc path

    Thanks for offering help but it is still the same error

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Save workbook to speciifc path

    Hmmmmm. Maybe attach a sample of your workbook with the code so I can offer more concrete help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Save a Workbook With A file path and name referenced cell
    By John Vieren in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2013, 06:39 AM
  2. [SOLVED] How to save a copy of the workbook to a specified path?
    By moxman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2013, 01:44 AM
  3. how can I add a path where to save the new workbook?
    By simeonmein in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2013, 03:33 PM
  4. [SOLVED] Save a workbook to a folder path in textbox2 using textbox1 as filename
    By yoko21 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-24-2013, 03:59 AM
  5. Path name invalid when trying to save a workbook - VBA
    By Jamiec94 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2013, 12:42 PM
  6. Replies: 5
    Last Post: 03-21-2013, 07:34 AM
  7. [SOLVED] Macro to get worksheets to save to new workbook with OPEN workbooks .PATH & " " as name.
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2012, 08:07 PM
  8. Save Workbook using name and path in a cell
    By adinic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2007, 01:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1