Excel 2010 - Tables and Overwriting Calculated Columns

ajay_gajree

Well-known Member
Joined
Jul 16, 2011
Messages
518
Hi All

When you put a formula in a column in a Table this will copy to all cells in that same column.
If you then overtype this (In a table with 2 or more rows), a smart tag appears asking if you wish to

"Restore to calculated column formula"

I want to access this using VBA, so I can correct any cells that are mistakenly overwritten with the correct formula.

Tried searching the excel object model, tried recording a macro (Nothing records), and tried good old google!

I have found that the keyboard short cut for this is Alt + Shift + F10 then R.

Even when I record these nothing gets recorded!

Any help appreciated!
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,463
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
I don't think there is any direct access to that. I suspect you'd have to loop through the cells in the column until you found one where cell.Errors(InconsistentTableFormula).Value was False, and you could then apply that cell's Formula property to the whole column.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,524
Messages
5,625,311
Members
416,093
Latest member
tjrogers04

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top