PDA

View Full Version : [SOLVED:] Copy From 1 Workbook To Others



juan4412
07-09-2015, 10:22 AM
Hello 1st post so apalogy if I miss a step.

I am needing to find the last cell in column B with data, then go down 4 more cells. How can this be achieved?

mancubus
07-10-2015, 06:14 AM
Dim LastCellB As Range, LastCellBDown4Rows As Range

Set LastCellB = Worksheets("MySheet").Cells(Rows.Count, "B").End(xlUp)
Set LastCellBDown4Rows = Worksheets("MySheet").Cells(Rows.Count, "B").End(xlUp).Offset(4,0)


change "MySheet" to your worksheet name.

and what are you going to do with these cells?

juan4412
07-10-2015, 01:26 PM
I need to get the location to enter a footer that is being added. Some confidentiality jargon.

mancubus
07-10-2015, 04:08 PM
then

Worksheets("MySheet").Cells(Rows.Count, "B").End(xlUp).Offset(4).Value = "Footer Text Here"