GuyHudson83
New Member
- Joined
- Jun 22, 2011
- Messages
- 1
Hi,
I was hoping someone might be able to help I am trying to fill copy the name of a category from one sheet (GOBACK) and paste into the next available cell in column D then copy down as far as the last populated cell in column e (for example if I was to do this without a macro i would double click the bottom right corner of the cell to fill down)
The ranges will need to vary as it works down through the categories. This is what I have so far..
Any help very gratefully received
Thanks,
Guy
I was hoping someone might be able to help I am trying to fill copy the name of a category from one sheet (GOBACK) and paste into the next available cell in column D then copy down as far as the last populated cell in column e (for example if I was to do this without a macro i would double click the bottom right corner of the cell to fill down)
The ranges will need to vary as it works down through the categories. This is what I have so far..
Code:
Sheets("DATA STORE").Select
Range("D5").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
Application.CutCopyMode = False
lastRow = ActiveWorkbook.UsedRange.End(xlDown).Row
Range(ActiveCell + CStr(lastRow)).PasteSpecial xlPasteAll
RangeActivecell.Copy Range(ActiveCell + CStr(lastRow))
Any help very gratefully received
Thanks,
Guy