ajay_gajree
Well-known Member
- Joined
- Jul 16, 2011
- Messages
- 518
Hi All,
I am trying to write a simple macro,
Sheets("Sheet1").Select
Range("B2").Select
Selection.End(xlDown).Select
Range("B18").Select
Selection.FillDown
My aim is to copy a formula in the last cell in Column B, so I recorded what I wanted with the above result,
So this is selecting a sheet and a cell and then uses control down arrow to go to the last cell with data in it in that Column,
I then wish to select the cell below and copy down using Control D
This is the bit that is wrong in the code as recorded macro is showing the specific cell B18, when I would like the first empty cell in the Column,
Any ideas?
Thanks and best regards
Ajay
I am trying to write a simple macro,
Sheets("Sheet1").Select
Range("B2").Select
Selection.End(xlDown).Select
Range("B18").Select
Selection.FillDown
My aim is to copy a formula in the last cell in Column B, so I recorded what I wanted with the above result,
So this is selecting a sheet and a cell and then uses control down arrow to go to the last cell with data in it in that Column,
I then wish to select the cell below and copy down using Control D
This is the bit that is wrong in the code as recorded macro is showing the specific cell B18, when I would like the first empty cell in the Column,
Any ideas?
Thanks and best regards
Ajay