Forum Discussion
PREET
Feb 10, 2025Copper Contributor
"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 ...
Jahuu
Jun 03, 2025Copper 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 SubAfter sitting all parameters just run macro and its sets them without crashing.