+ Reply to Thread
Results 1 to 2 of 2

Code for "not to save"

  1. #1
    Registered User
    Join Date
    01-22-2008
    Posts
    38

    Code for "not to save"

    I have a macro built that essentially open a closes file for them to update each other, but when the files go to close, I get a pop-up box asking if I would like to save it. The answer is always "no". Is there VB code I cad add to the mocro that will say "no" each time it pops up?

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon ninja0059

    Just use this line directly before your close command.
    Please Login or Register  to view this content.
    This just sends a message to Excel telling it that the file is saved. The fact that it isn't is irrelevant - the message won't appear.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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