+ Reply to Thread
Results 1 to 6 of 6

Automatically select "No" when a alert window pops up.

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Morrisville, NC
    MS-Off Ver
    2013
    Posts
    40

    Automatically select "No" when a alert window pops up.

    I have a code where I'm copying information from one spreadsheet to another. When I close the one spreadsheet, an alert window pops up asking if I want to save the copied information on the clipboard. The default answer is "Yes", but I don't want to, so I don't think ThisWorkbook.Close SaveChanges:=False will work. Is there a different code to answer this pop up "no"?

  2. #2
    Registered User
    Join Date
    11-22-2016
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Automatically select "No" when a alert window pops up.

    ThisWorkbook.Close (False) should work, but that is the same as the one you suggested. Have you tried using it to verify?

  3. #3
    Registered User
    Join Date
    09-12-2014
    Location
    Morrisville, NC
    MS-Off Ver
    2013
    Posts
    40

    Re: Automatically select "No" when a alert window pops up.

    I did, and it still popped up that alert window.

  4. #4
    Registered User
    Join Date
    11-22-2016
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Automatically select "No" when a alert window pops up.

    Try putting
    Please Login or Register  to view this content.
    before that command. After this, remember to set it back to True.

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Automatically select "No" when a alert window pops up.

    Just clear the copy buffer...

    Please Login or Register  to view this content.
    Should prevent the pop-up altogether.

  6. #6
    Registered User
    Join Date
    09-12-2014
    Location
    Morrisville, NC
    MS-Off Ver
    2013
    Posts
    40

    Re: Automatically select "No" when a alert window pops up.

    Clearing the buffer before I closed it worked... Thanks cytop. I figured it was something simple like that.

+ 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. [SOLVED] Open Workbook in "Full Screen" mode but with sized "Window" View
    By HGL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2016, 05:54 AM
  2. Bypass "Select Data Source" Window after SQL Query executed
    By neek13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-12-2014, 05:12 PM
  3. VBA - IE - click on "Open" in an internet explorer "file download" window
    By victoire in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2013, 07:08 AM
  4. Resize "go to" window, that pops up for trace precedents and dependents
    By Ym77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2013, 12:05 PM
  5. [SOLVED] "Chart sizes with window frame" automatically re-checked
    By jeff.stoller@juno.com in forum Excel General
    Replies: 0
    Last Post: 06-08-2006, 12:55 PM
  6. [SOLVED] Excel 2003 VBA - "Maximizing" Window & "Calculating" Workbook
    By JingleRock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2006, 12:10 AM
  7. Replies: 5
    Last Post: 03-22-2006, 01:30 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