I have the following formula in column B of a worksheet:
=IF(INDIRECT("Programado!B4")="","",INDIRECT("Programado!B4"))
The formula's purpose is only to display what text/value is found in cell B4 on the Programado worksheet of my workbook. Because this is an indirect formula, when I fill it down several rows the cell reference doesn't increment. So all cells that are filled with this formula reference B4 of the Programado worksheet instead of increasing to B5, B6, B7, etc. Does anyone now how I can loop through all the cells in the column that this formula is located and replace the 4?
For example:
I know this doesn't work and is missing a lot of other things, but I was looking for something to that effect. I hope this isn't too vague, I appreciate any help that anyone will be able to provide, thanks.
-Cody
=IF(INDIRECT("Programado!B4")="","",INDIRECT("Programado!B4"))
The formula's purpose is only to display what text/value is found in cell B4 on the Programado worksheet of my workbook. Because this is an indirect formula, when I fill it down several rows the cell reference doesn't increment. So all cells that are filled with this formula reference B4 of the Programado worksheet instead of increasing to B5, B6, B7, etc. Does anyone now how I can loop through all the cells in the column that this formula is located and replace the 4?
For example:
Code:
dim i as integer
i = 5
dim c as range
for each c in selection
.find(what:="4",replacement:=i)
i = i +1
next
I know this doesn't work and is missing a lot of other things, but I was looking for something to that effect. I hope this isn't too vague, I appreciate any help that anyone will be able to provide, thanks.
-Cody