Forum Discussion

PREET's avatar
PREET
Copper Contributor
Feb 10, 2025

"OVERWRITE EXISTING CELLS WITH NEW DATA..." GET DESELECTED

HELLO , I HAVE OFFICE 365 .
FROM 1 MONTH AGO THE BUTTON IN DATA TAB THEN PROPERTIES AND IN IT "OVERWRITE EXISTING CELLS WITH NEW DATA..." GET DESELCTED AUTOMATICALLY AND WHEN WE REFRESH DATA IT GET OVERLAPPED . EARLIER IT WAS WORKING FINE  

 

LIKE IN SCREEN SHOT WE HAD SELECTED "OVERWRITE........" TAB BUT WHEN WE PRESS OK AND REOPEN IT IT GET DESELECTED 

PLEASE HELP ON THIS

15 Replies

  • HCjac's avatar
    HCjac
    Copper Contributor

    I went on ChatGPT and it gave me a fix that works:

    🛠 What You Can Do

    Switch to Legacy Wizard (Classic Behavior)

    You can re-enable the old import wizard that does remember settings like it used to:

    1. Go to:
      File → Options → Data
    2. Under Show legacy data import wizards, check:
      From Access
    3. Now go to Data → Get Data → Legacy Wizards → From Microsoft Access Database
    4. The old interface should remember the overwrite setting just like it did in 2002–2013.

     

    🧩 TL;DR

    • You're not imagining it — this did work consistently for 20 years.
    • Microsoft changed the underlying import engine.
    • The new system is more cautious and doesn’t persist all settings.
    • You can bring back the old behavior by enabling legacy wizards in Excel settings.
  • Jahuu's avatar
    Jahuu
    Copper Contributor

    Hi, i use workaround with VBA:

    Sub SetExternalDataProperties()
    ' Change TableName to yours table name
    Range("TableName[[#All]]").Select
            With Selection.ListObject.QueryTable
                'set true or false
    			.RowNumbers = False
                .AdjustColumnWidth = False
                .PreserveColumnInfo = True
    			.PreserveFormatting = True
    'set one of three XlCellInsertionMode 			
    			.RefreshStyle = xlOverwriteCells ' Possible:
    'xlInsertDeleteCells	1	Partial rows are inserted or deleted to match the exact number of rows required for the new recordset.
    'xlInsertEntireRows	2	Entire rows are inserted, if necessary, to accommodate any overflow. No cells or rows are deleted from the worksheet.
    'xlOverwriteCells	0	No new cells or rows are added to the worksheet. Data in surrounding cells is overwritten to accommodate any overflow.
    
                
            End With
    End Sub

    After sitting all parameters just run macro and its sets them without crashing.

  • HCjac's avatar
    HCjac
    Copper Contributor

    Hi gopir, there is no updates. I do not have a way to contact Microsoft. The work around I am using is to delete the query and using get data from access database to put it back in each week to update with the new data.

     

  • gopir's avatar
    gopir
    Copper Contributor

    Do we have any updates on this issue? From Microsoft or any work around?

    • mohami's avatar
      mohami
      Copper Contributor

      Hi gopir,

      I found a workaround in reddit - start a recording a macro, open the Data-Properties window and select the Overwrite option. Stop the recording.  Edit the macro and change the refreshstyle to 'xlOverwriteCells'.  Run the macro and it fixes the selection option.  Good luck!

  • mohami's avatar
    mohami
    Copper Contributor

    Thankyou so much for posting this!  I'm having the exact same problem.  "Overwrite existing cells" was checked in several power queries in different workbooks.  One of the workbook was having a problem and now thanks to you I see that excel automatically unchecks it when I close the External Data Properties configuration popup. The other workbooks are fine. 

    I'll throw in that the option was removed from the Query->Properties menu, had to go to Data->Queries & Connections->Properties to find it again.

    • HCjac's avatar
      HCjac
      Copper Contributor

      Thanks for posting Mohami. I am not finding the overwrite option in  Data->Queries & Connections->Properties. Could you show me where you are seeing it. Thanks Jacchi

      • mohami's avatar
        mohami
        Copper Contributor

        My apologies for my delay.  Queries & Connections is both a panel and an option in that panel.

         

  • May consider below before contacting Microsoft support:

     

    • Update Office 365: Ensure your Office 365 application is up to date. Sometimes bugs are fixed in newer updates.
    • Check for Add-ins: Disable any add-ins that might be interfering with Excel's functionality. Go to File > Options > Add-ins and disable them temporarily to see if the issue persists.
    • Repair Office Installation: You can try repairing your Office installation. Go to Control Panel > Programs > Programs and Features, select Office 365, and choose "Change" then "Repair."
    • Recreate the Data Connection: Sometimes recreating the data connection can help. Delete the existing connection and set it up again from scratch.
    • PREET's avatar
      PREET
      Copper Contributor

      Thanks for replying 

      I had already contacted Microsoft Support 2 days before

      firstly they repaired office but things don't work then we together reinstalled office 365 still problem persist . 

      so I told them that it seams that their is office software issue but they said No this is not Software Issue And given this link of Excel Community to get in touch 

       

      my previous  excel query working fine but new query from last few days not working and getting deselected automatically . i havnt installed any add ins 

      so need help if anybody can 

       

      • HCjac's avatar
        HCjac
        Copper Contributor

        Hi, This definitely has to be a Microsoft problem.

        We have had this problem since the beginning of this year 2025. We have been using the same method since 2001 and have always been able to select "overwrite existing cells with new data, clear unused cellls" for the last 24 years. I have a 2024 system that shows "overwrite existing cells with new data, clear unused cellls" is selected just fine. If i make a copy and go into change the query, the "properties" will not longer keep this option.

        We use the subscription based office 365, so always have the the most update to date software from Microsoft. I call the office 365 support, but they said I needed to call Microsoft technical support. Preet could you let me know what number of support you called? jdr

Resources