Hi I need a little help with some VBA coding.
I have used the following to find the last cell.
Sub LastCellInColumn()
Range("B65000").End(xlUp).Select
This works fine.
However when I substitute the B65000 to a named range "chttotal" it just gives me cell B1.
How can I get around this?
The 2nd part of this is I am importing a spreadheet onto another sheet which uses named ranges. On the spreadheet to where the data is imported to there is a column where there is a formula. I would like this formula to update (autofill) as a named range ("chttotal") or to the length of the column that has been imported.
hope this makes sense
I have used the following to find the last cell.
Sub LastCellInColumn()
Range("B65000").End(xlUp).Select
This works fine.
However when I substitute the B65000 to a named range "chttotal" it just gives me cell B1.
How can I get around this?
The 2nd part of this is I am importing a spreadheet onto another sheet which uses named ranges. On the spreadheet to where the data is imported to there is a column where there is a formula. I would like this formula to update (autofill) as a named range ("chttotal") or to the length of the column that has been imported.
hope this makes sense