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!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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.
 
Upvote 0

Forum statistics

Threads
1,215,762
Messages
6,126,740
Members
449,335
Latest member
Tanne

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
Back
Top