Range("B" & Rows.Count).End(xlUp).Offset(1)

fpskidmark

Board Regular
Joined
Sep 11, 2009
Messages
139
Hi Guys,

This is probably an easy fix, but I've been struck on this for a while now.

Range("B" & Rows.Count) - This will give me the last available row in column B, but I need the paste to start at range("B12"), then B13, B14, B15 etc...
Any suggestions?


For sa = 3 To 39
If Sheets("Pts").Range("c" & sa) = "a" Then
Sheets("Pts").Range("D" & sa & ":f" & sa).Copy
Sheets("Report Card").Range("B" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End If
Next sa


Thank you,
FP
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The way that code is writtien, it will paste to 1 row below whatever is the last occupied cell in column B.

So say B12 is the last occupied cell in column B, that code will paste to B13.
 
Upvote 0
Thanks for the reply, Jonmo1

No, the last occupied cell in Column B is B34. I want the code to paste at B12. Rows from B12:B32 are empty (section 1). Section II starts from row 35 (B35).
B33:B34 are occupied cells.

Thank you
 
Upvote 0
Hey @fpskidmark.

Were you able to resolve your issue. I am facing the same issue in 2021.
Kindly help, please.
 
Upvote 0
Hey @fpskidmark.

Were you able to resolve your issue. I am facing the same issue in 2021.
Kindly help, please.
If you have a question, you are probably better off posting it to a new thread instead of resurrecting an old thread (especially since the user you are trying to contact hasn't been on the board in a few years!).

Also, when you post to a new thread, the question shows up on the "Unanswered threads"listing, which is a place many "helpers" go to in order to look for new, unanswered questions.
 
Upvote 0
Thaks for the tip Joe4.
i will do that right away.
Reagrds
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top