Select (go to) next blank cell in a column VBA code?

RBrite

New Member
Joined
Mar 31, 2020
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Help please!

I am trying to write a code to loop from and to the next blank cell in a column, this isn't working!

NextFree = Range("E:E" & Rows.Count).Cells.SpecialCells(xlCellTypeBlanks).Row
Range("E" & NextFree).Select

any ideas please - I really don't know what I'm doing ?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the Board!

Can you explain in a little more detail?
Are you trying to search column E for the first blank cell it comes to (it could be in the middle of your data), or the find the last cell in that column with data, and then select the cell below that?
 
Upvote 0
Hi Joe, thank you!

I have recorded a macro to populate a worksheet across columns A-M (from a data collation 'template' in another worksheet). I need to specify the starting point of this macro to be in the next empty cell in column E?
 
Upvote 0
You can find the last populated row in column E like this:
VBA Code:
lastrow = Cells(Rows.Count,"E").End(xlUp).Row
So then you can select the next available cell in column E like this"
VBA Code:
Cells(lastrow + 1,"E").Select
Is that what you need?
 
Upvote 0
You can find the last populated row in column E like this:
VBA Code:
lastrow = Cells(Rows.Count,"E").End(xlUp).Row
So then you can select the next available cell in column E like this"
VBA Code:
Cells(lastrow + 1,"E").Select
Is that what you need?
Well, I don't know, if that's what RBrite needed, but You certainly helped me, so thank You a lot!! :)
 
Upvote 0

Forum statistics

Threads
1,221,607
Messages
6,160,773
Members
451,670
Latest member
Peaches000

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