Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell reference in macro
I have an estimating template which I recorded some macros for. The macros
change several unit rates automatically and re-calculates my bid price. The problem I am concerned about is that if I add rows, my macro ends up one row off. I tried naming the cells that change and adding the new names to the macros, but that is not able to correct the offset caused by adding rows. 1) I would like to be able to safely add rows without messing up all my math but 2)will settle for a work around that prevents someone from adding rows, if that is possible. Any suggestions? Thanks, Andy |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell reference in macro
I'd be happy to help, but could you send me the spreadsheet? Post back here
when you have emailed it. mc19991999 @ hotmail "AJB" wrote: I have an estimating template which I recorded some macros for. The macros change several unit rates automatically and re-calculates my bid price. The problem I am concerned about is that if I add rows, my macro ends up one row off. I tried naming the cells that change and adding the new names to the macros, but that is not able to correct the offset caused by adding rows. 1) I would like to be able to safely add rows without messing up all my math but 2)will settle for a work around that prevents someone from adding rows, if that is possible. Any suggestions? Thanks, Andy |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell reference in macro
Unfortunately, the template is proprietary and dumbing it down would take
forever. This is how the macro currently is after I named the cells that need to change between products. Range("labor_rate_1").Select ActiveCell.FormulaR1C1 = "=R[-1]C[5]-0.01" Range("labor_rate_2").Select ActiveCell.FormulaR1C1 = "0.8" Hopefully that make my problem a little clearer? "Mike" wrote: I'd be happy to help, but could you send me the spreadsheet? Post back here when you have emailed it. mc19991999 @ hotmail "AJB" wrote: I have an estimating template which I recorded some macros for. The macros change several unit rates automatically and re-calculates my bid price. The problem I am concerned about is that if I add rows, my macro ends up one row off. I tried naming the cells that change and adding the new names to the macros, but that is not able to correct the offset caused by adding rows. 1) I would like to be able to safely add rows without messing up all my math but 2)will settle for a work around that prevents someone from adding rows, if that is possible. Any suggestions? Thanks, Andy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro - How to increment cell reference by one row | Excel Worksheet Functions | |||
Reference a Macro to perform Cell formula | Excel Discussion (Misc queries) | |||
variable cell reference in a macro | Excel Discussion (Misc queries) | |||
Chnaging Cell reference through macro | Excel Discussion (Misc queries) | |||
Allowing for variable cell reference in macro | Excel Worksheet Functions |