Results 1 to 12 of 12

Code to answer No to an error message

Threaded View

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    50

    Code to answer No to an error message

    Hi

    I have a macro enable spreadsheet (Book1.xlsm) and one of its functions is to copy data from a second spreasheet (Book2.xlsx) and copy it into the original spreasheet (Book1.xlsm). Everything works fine if Book2 is closed when i run the macro but if it is already open I get the following message:

    "Book2.xlsx is already open. Reopening will cause any changes you made to be discarded. Do you want to reopen Book1.xlsx" [Yes] [No]

    The code in use is large and complicated so I haven't pasted it in this forum. All I need is a single line of code that answers No to the above error message.

    Any help would be appreciated.

    Doug
    Last edited by boohah; 08-12-2010 at 09:07 AM.

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