Hello,
I need a macro to somehow modify the row range (rows only, not the columns) of the formula =SUMIF('Takeoff Sheet'!E1:E30,"Incidentals",'Takeoff Sheet'!F1:F30) to match the range of cells I currently have selected. I have this formula stored in a named cell "_0_a_a_Incidentals" so it will be in the same location at all times. After the range is changed I can then copy and paste this formula to where I need it. I should be able to figure out the copy and paste portion of the macro but I have no idea where to start to modify the range.
Below are the steps...
Step One: I select a group of cells from my sheet called "Takeoff Sheet". example: E8:O120. Note: this will be a random group every time.
Step Two: Run this macro
Step Three: This macro would find the named cell "_0_a_a_Incidentals" which contains the formula =SUMIF('Takeoff Sheet'!E1:E30,"Incidentals",'Takeoff Sheet'!F1:F30)
Step Four: This macro would modify the contents of this formula to =SUMIF('Takeoff Sheet'!E8:E120,"Incidentals",'Takeoff Sheet'!F8:F120)
Any help or ideas would be greatly appreciated. Thanks to anyone to takes on this challenge.
I need a macro to somehow modify the row range (rows only, not the columns) of the formula =SUMIF('Takeoff Sheet'!E1:E30,"Incidentals",'Takeoff Sheet'!F1:F30) to match the range of cells I currently have selected. I have this formula stored in a named cell "_0_a_a_Incidentals" so it will be in the same location at all times. After the range is changed I can then copy and paste this formula to where I need it. I should be able to figure out the copy and paste portion of the macro but I have no idea where to start to modify the range.
Below are the steps...
Step One: I select a group of cells from my sheet called "Takeoff Sheet". example: E8:O120. Note: this will be a random group every time.
Step Two: Run this macro
Step Three: This macro would find the named cell "_0_a_a_Incidentals" which contains the formula =SUMIF('Takeoff Sheet'!E1:E30,"Incidentals",'Takeoff Sheet'!F1:F30)
Step Four: This macro would modify the contents of this formula to =SUMIF('Takeoff Sheet'!E8:E120,"Incidentals",'Takeoff Sheet'!F8:F120)
Any help or ideas would be greatly appreciated. Thanks to anyone to takes on this challenge.