Hi,
I have an excel table (ListObject), to which I am adding a column at the click of a button via a Macro.
The macro needs to also drag the formula form the last existent column into the new column. The formula references another column within the same table.
I am using autofill to drag along the formula into the new column, but it does not seem to be changing references. It keeps the references of the source cell (which is being used for autofill), so the value in the new column returns the same value as the existent one.
For example say there are 3 columns in Table1:
a) Column A - existent
b) Column B = Column A + 1
c) New column being autofilled onto - Column C should be equal to Column B + 1
BUT when using autofill, Column C is returning Column A + 1, same as source.
Does VBA autofill not work for cells that reference columns within a table?
Mark
Bookmarks