Results 1 to 6 of 6

Thread: Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

  1. #1
    Join Date
    Dec 2011
    Posts
    5

    Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

    I had configured some n AUTO_OPEN macro in Microsoft Excel. Sometimes, whe I run it I get a message saying Do you want to replace the contents of the destination cells. Yes/No. Why does this error occurs. How to turn it off.

  2. #2
    Join Date
    Jun 2011
    Posts
    487

    Re: Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

    Your Auto_Open code is obviously trying to paste something into filled cells or
    similar operation like Text to Columns. You can turn off the message and have it default to "Yes" but are you sure you want the destination cells to be replaced? Check your code to see what it is doing before adding more code to turn off the message.

  3. #3
    Join Date
    Dec 2011
    Posts
    5

    Re: Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

    I'm not sure what is causing. Your Auto_Open code is obviously trying to paste something into filled cells or similar operation like Text to Columns. You said that you can turn off the message and have it default to "Yes" but are you sure you want the destination cells to be replaced. Yes, I'd like to turnoff the MsgBox and default to Yes replacing destination cells...How do I do that? Everything is being populated via automation from Access and is doing what is needed.

  4. #4
    Join Date
    May 2011
    Posts
    448

    Re: Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

    Try this out it works sometime.
    • Application.displayalerts = false
    • 'your code that causes the alert to appear
    • application.displayalerts = true


    Or else there is one more thing you can do :

    It might be necessary to communicate your code, because ' Range ("a1"). Copy Destination: = Range ("c3") " works without message if C3 contains a value. Otherwise, a general " Application. DisplayAlerts = False " off most of the posts of Excel. Do not forget to put " Application. DisplayAlerts = True"

  5. #5
    Join Date
    May 2011
    Posts
    410

    Re: Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

    This doesn't even see the warning box--it just assumes that you don't want to be bothered by the warning and that you know what you're doing. With Excel , it is possible to prevent any movement of cell unchecking the 'drag and drop of the cell. Changing the options dialog box (Tools \ Options). If you have Excel 2000 or 97, I do not know if this option is available. And I do not know if this solution you should give a try.

  6. #6
    Join Date
    Dec 2011
    Posts
    5

    Re: Excel Macro Popup Message " Do you want to replace the contents of the destination cells"

    Essien Not sure why the "warning" appears, but the data I need is there from the automation code in Access.

Similar Threads

  1. Macro Error "Too Many Line continuations" in Excel
    By Aninch in forum Windows Software
    Replies: 2
    Last Post: 31-12-2011, 05:26 PM
  2. "Password protected" popup message in Dell Studio XPS 16 notebook
    By Baby bon bon in forum Portable Devices
    Replies: 5
    Last Post: 28-03-2011, 07:45 PM
  3. "font cache rebuilt" message popup necessary
    By Tamonash in forum Windows Software
    Replies: 8
    Last Post: 25-09-2010, 11:49 PM
  4. Error message "Cannot load dll " while loading vba macro
    By Digamber in forum Windows Software
    Replies: 3
    Last Post: 09-05-2009, 01:09 PM
  5. Replies: 2
    Last Post: 17-01-2007, 09:47 PM

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
  •  
Page generated in 1,713,905,303.15307 seconds with 17 queries