+ Reply to Thread
Results 1 to 13 of 13

Not saving as new workbook without Save As window

  1. #1
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Not saving as new workbook without Save As window

    Greetings all,

    I am working on "Planning" Workbook which will copy the completed Plan (Sheet) to a new workbook and save this new workbook to a network drive. The new work books name is based on a couple of cells from the original Planning Workbook. I have tried all suggestion I have come accross the various forums but it always opens the "Save As" Window. I do not get errors, filepath and file name variables are accurate.

    Can anybody help out with this please?
    Last edited by kienfred; 12-17-2014 at 01:56 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,607

    Re: Not saving as new workbook without Save As window

    Welcome to the forum.

    How would you have us help you? No workbook, no worksheets, no data, no code, no process outline, ...

    I have tried all suggestion I have come across the various forums
    ... so, what would the suggestions you have tried look like?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Not saving as new workbook without Save As window

    Hello TMS,

    All I am looking for is the code to save a New Workbook which contains the Copy of the sheet with the Planning sheet of the original Workbook. All this works, I get a new Workbook with the copy of the desired sheet. Only when it comes to the saving part I am not sure how to get this done without opening the "Save As" window.

    Cheers

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,607

    Re: Not saving as new workbook without Save As window

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Not saving as new workbook without Save As window

    Hello TMS,

    Running the code below will show the "Sava As" Window. I would like no user input for saving this file. I have the File path commented out for now, chDir also. Any suggestions?

    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,607

    Re: Not saving as new workbook without Save As window

    Check the syntax of the SaveAs (see my previous post)


    http://msdn.microsoft.com/en-us/libr...ffice.15).aspx



    Regards, TMS

  7. #7
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Not saving as new workbook without Save As window

    Hello TMS,

    You are absolutely right, my appologies but correcting the syntax still does not eliminate the "Save As" Window. I have tried everything I could find and nothing has stopped the window from coming up. What I can say is that if I save "ThisWorkBook" it will save without the window but I need to save the NewBook!

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Not saving as new workbook without Save As window

    Anybody can help with this?

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,607

    Re: Not saving as new workbook without Save As window

    Suggest that you post a sample workbook (as I hinted in my original response).

  10. #10
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Not saving as new workbook without Save As window

    Thank you TMS,

    My issue has been resolved!

    Cheers

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,607

    Re: Not saving as new workbook without Save As window

    What was the solution?



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  12. #12
    Registered User
    Join Date
    12-16-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Not saving as new workbook without Save As window

    Hallo TMS,

    The workbook has in the Project Window 2 more projects showing (Not the Personal WB) even only one Excel session was running. By stepping through my Code i was taken to the "other Project". I commented out the code of the other Projects resaved my file and now I can run my Code. I am not sure of the purpose of those projects which appear in any Excel session. Well, except one!

    Cheers!

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,607

    Re: Not saving as new workbook without Save As window

    Did you try
    Please Login or Register  to view this content.

    Regards, TMS

+ 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. Blank Save As window when saving spreadsheet
    By jismith in forum Excel General
    Replies: 3
    Last Post: 12-21-2022, 11:16 PM
  2. .save not saving active workbook
    By dwr0211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2011, 04:35 PM
  3. How to (not) save workbook window position?
    By jrussell in forum Excel General
    Replies: 9
    Last Post: 03-05-2010, 05:22 PM
  4. Save VBA without saving the workbook?
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2006, 09:00 PM
  5. Workbook.Save not saving the updates
    By brucedodds@comcast.net in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2005, 12:06 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