Morning
I have an inherited macro, that occasionally does not behave as intended, when trying to fill a data series between two column values - sometimes when there is a large number of blank cells/rows between the two points, it doesn't fill correctly.
So it has a user entered data fields on the first 4 columns - the fourth column is a marker used to indicate certain triggers IRL and used as targets in this macro
so in this example, it has an 's' marker that the macro looks for to determine the start and end of the data series fill - note that there may be several different markers throughout the data series, each 'pair' it calculates a new series for, and fills between. it also uses the first and last cells by default.
So I have stripped some other stuff out of this to redact it slightly, but the example shows a failure state, when running the 'get values' macro button:
1) it is able to fill a data series in column L between the 's' tags at row 2 and 21
2) it fails to enter a data series between the next set, between row 21 and row 18116
I can manually create a FILL / SERIES / COLUMN / LINEAR / TREND between these samples
You can also step through the 'get_overwrite_Original' macro, and see that it is calculating the correct step value (I think)
So, the macro works when there is a small number of cells to range over, but fails if this is too large - I have been unable to find the information about limiting the resize range command it seems to use - any ideas?
Example excel, with sample data and macro attached - click clear calculated field, then get values to see in action
Gareth
Bookmarks