+ Reply to Thread
Results 1 to 3 of 3

Save Problem

  1. #1
    Registered User
    Join Date
    10-22-2018
    Location
    Turkey
    MS-Off Ver
    Office2010
    Posts
    84

    Question Save Problem

    Hi All,

    The macros below are to save my workbook under conditions but can not succeed to execute as I wish. 1st code is to disable normal save of excel, 2nd code is to be used from CommandButton. What I want to do it:

    1) Save and Close workbook if workbook name is different than "PACKAGE CALCULATOR" without any prompt screen
    2) If workbook name is "PACKAGE CALCULATOR", open Save As pop-up but when Cancel Button pressed do not close workbook
    3) If workbook name is "PACKAGE CALCULATOR", open Save As pop-up if new file name entered and pressed OK than save and close workbook

    Thanks for all kindest helps.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Save Problem

    Please explain what "can not succeed to execute as I wish" means.
    • Does the code run?
    • Does it run but do nothing?
    • Does it produce error messages? If so, what do the messages say?
    • Does it produce unexpected/wrong results? If so, how do the results differ from what you expect?
    • Does it hang?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-22-2018
    Location
    Turkey
    MS-Off Ver
    Office2010
    Posts
    84

    Re: Save Problem

    Hi Jazzer,
    • Yes Macro works
    • If workbook name is different from "PACKAGE CALCULATOR" it saves & close workbook / It' s OK
    • If workbook name is "PACKAGE CALCULATOR" it opens saveas dialog and save & close after enter a file name then hit OK Button as well / It' s OK
    • If workbook name is "PACKAGE CALCULATOR" and if I hit cancel button it also close the workbook but I need not to close be back to ActiveSheet / It' s NOT OK
    • No hang no error message at all
    • The wrong result occurs in 3rd condition only, normally it should be back to Active Sheet by closing the saveas dialog

    Hope information is good enough to understand my problem
    Regards

+ 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. before save problem
    By tmill29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2014, 07:06 PM
  2. before save problem
    By tmill29 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-16-2014, 03:17 PM
  3. [SOLVED] problem with save as?
    By njs27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2013, 03:49 PM
  4. Save As Problem
    By Dean81 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2011, 06:27 AM
  5. Save As problem
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2010, 05:57 AM
  6. Problem with save xls into csv
    By mario99ukdw in forum Excel General
    Replies: 0
    Last Post: 10-29-2008, 02:53 AM
  7. [SOLVED] Problem with 'save as'
    By Boz in forum Excel General
    Replies: 1
    Last Post: 04-07-2006, 03:40 PM
  8. Save as problem with Save In drop down box
    By Doug in forum Excel General
    Replies: 3
    Last Post: 03-16-2006, 10:50 AM

Tags for this Thread

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