Problems with a table

Nomis_Eswod

Board Regular
Joined
Jul 27, 2005
Messages
153
Hi,

I have a table in Excel that is split into 2 halves. Unfortunately I am unable to post it on here due to restrictions in place on my work PC, but I will try and describe it...

Row B5:F5 has titles, and rows B14:F14 has titles, and I fill in the information inbetween. I am trying to use a macro that says:

Code:
Range("B22").End(xlUp).Offset(1,0).Value = "Whatever"

Where row B22 is the bottom of the table. I want this pasted into B15, i.e. below the title that is in that row. However, it seems to skipped B14 and actually pastes under the title that is in row B5. Any ides why this might be, and how I can fix this??

Someone told me before to copy a blank cell and click on B14 and do a paste special>add, which I have tried, but it does not work.

Many thanks in advance!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
If B4 is empty and there are no empty cells in the range B5:B22

Range("B22").End(xlUp)

will return B5.

Range("B22").Offset(-7, 0)

will return B15.

But is there some rule that determines that B15 is the cell that you want to paste into?
 
Upvote 0

Forum statistics

Threads
1,203,600
Messages
6,056,206
Members
444,850
Latest member
dancasta7

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