Hi:
I'm trying to figure out how to autofill the formulas after inserting a row. I figured out how to copy and insert, however, this keeps the formula the same, instead of the autofill increment.
This code does the insert/copy with named range "Last_Year":
I tried removing the .copy and adding a .offset.filldown/fillup but the results were not autofilling.Please Login or Register to view this content.
I tried adding this after the end With, and although it kind of works, it prompts an object defined error message:
What I'm trying to do:Please Login or Register to view this content.
Convert sales data report from 12 month year to 13 periods. Jan-Dec is somewhere in column A, arbitrary row position. "Last_Year" named range refers to only this monthly column range (essentially the "label" for this "table" of data), whatever row it begins (example: A41:A52). Data for each month extends out through each respective row, and this data is formula driven. Manually click-dragging the forumlas completes autofill correctly by incrementing the columns and row numbers.
After the autofill is done (or before, whatever works better no big deal), I will then iterate through the named range and replace the jan-dec values with P1-P13.
In the code above, I arbitrarily chose row 3 for the insert.. it doesn't really matter I think where. I have several of these named ranges.
I hope the above was clear explanation. Thank you for your time.
Bookmarks