What I am trying to do is have a row of formulas copied down by a set number of cells, which I have managed to do in VBA with:
Sub CensusCopy()
Range("A2:D2").Copy Range("A3").Resize(1 * Range("Company!$B$3").Value - 1)
End Sub
What I would like to accomplish is having those new formulas delete if the new value is less than the previous value. So, if the previous number was 100 and the new value is 50, then only 49 (plus original) would display. I would also like to have the module run automatically once the cell value is changed.
Thanks in advance for your help!
Sub CensusCopy()
Range("A2:D2").Copy Range("A3").Resize(1 * Range("Company!$B$3").Value - 1)
End Sub
What I would like to accomplish is having those new formulas delete if the new value is less than the previous value. So, if the previous number was 100 and the new value is 50, then only 49 (plus original) would display. I would also like to have the module run automatically once the cell value is changed.
Thanks in advance for your help!