Dynamic insert next row down

CookieMonster76

Board Regular
Joined
Apr 30, 2015
Messages
200
Hi

I have some data from a different tab, that I am copying into a summary. I need to mark which month is refers to, which I have done with this:

Range("C2:C" & Range("A" & Rows.Count).End(xlUp).Row).FormulaR1C1 = "Apr-2024"

I then need to copy in May data from a different tab, which i am able to do, but then mark it May-24 in Col C, but this needs to start one row after Apr ends (Offset?), but Apr-24 could be a varying length so the starting point for May can't be fixed.

Thanks in advance for any help

Paul
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hello,

Once your datas are imported in the current sheet, if i understood correctly in column C. You can use
VBA Code:
Range("C2").End(xlDown).Offset(1,0)

To find the first empty cell of the column C. It is equivalent to manually select the cell C2, then press CTRL+DOWN (.End(xlDown)) and then press DOWN once (.Offset(1,0)).
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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