I would like to name a column or unique numbers using a macro.
I tried simply recording a macro (I tried this both as a absolute and relative macro) selecting cell C2 and doing <CTRL> <shift> down arrow.
When I tested the macro out it always name a range of cells with the same length of cell as the spread sheet that I originally recorded the macro on. If the spreadsheet I recorded the macro on had 277 rows of data and I ran the macro on the sheet that has 300 rows of data the range it would pick is c2:c277 instead of c2:c300.
I do know a bit of VBA but a bit of a beginner in VBA.
I tried simply recording a macro (I tried this both as a absolute and relative macro) selecting cell C2 and doing <CTRL> <shift> down arrow.
When I tested the macro out it always name a range of cells with the same length of cell as the spread sheet that I originally recorded the macro on. If the spreadsheet I recorded the macro on had 277 rows of data and I ran the macro on the sheet that has 300 rows of data the range it would pick is c2:c277 instead of c2:c300.
I do know a bit of VBA but a bit of a beginner in VBA.