Macro - move to next empty cell in a column

vorvick

New Member
Joined
Sep 30, 2010
Messages
2
Hi All,

I've done some searching and while the answer may already be posted I don't have the backround to understand it. Thought I'd give this a try though.

In columnA I want to jump to the next blank cell in a list that continues to grow. So the first time I run the macro I want to go (blank) cell A5 to paste in some data. The next time I run it, it would need to go to cell A6 and so on.

When I do this manually, I simply hit ctrl down-arrow (takes me to the last cell w/data) and then one more down-arrow to take me to the empty cell below.

When I do this in the macro it seems to remeber the cell as an absolute reference (if that's the term) and so it just copies info in the same location as previous, instead of the next empty cell.

Any help would be appreciated,

PV
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
This would select the first empty cell

Code:
Range("A" & Rows.Count).End(xlUp).Offset(1).Select

but you shouldn't need to Select. You could use code like

Code:
Range("B7").Copy Destination:=Range("A" & Rows.Count).End(xlUp).Offset(1)
 
Upvote 0
Find("") - is there are way of stopping once it stops finding blanks as comes up with an error message?
 
Upvote 0
Find("") - is there are way of stopping once it stops finding blanks as comes up with an error message?
It looks like you have asked that question elsewhere and got it answered. Please take care not to post the same question multiple times, as per forum rules, posts of duplicate nature are typically locked or deleted.

Thanks
 
Upvote 0
absolutely grreat.

Code:
[COLOR=#333333]Range("A" & Rows.Count).End(xlUp).Offset(1).Select[/COLOR]

works like charm
 
Upvote 0
Hi All,

Could someone tell me how I go about using this code as I want to be able to go to the first blank cell in colum A and enter data, but not sure how I used it.

I am very new to formulas and codes.

Thanks

Shazz
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,777
Members
448,991
Latest member
Hanakoro

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