Lastrow definition problem

YounesB3

Board Regular
Joined
Mar 28, 2012
Messages
148
Hello, so far, I've been using this to take into account all the data until the last non-blank data from a column:

Code:
LastRow2 = Range("Q" & Rows.Count).End(xlUp).Row
Range("V52").Select
Selection.AutoFill Destination:=Range("V52:V" & LastRow2)

Now, I'd like to define lastrow from a column to a specific value. For instance, all the data until the word "blank" comes up.

So if I had from V52:

a
b
c
d
e
f
g
blank
blank
blank

Last row would stop at "g". Is that possible?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Mark858: YounesB3 asked you if MrExcel & ExcelForum.com are somehow linked. There must be some kind of link between them as I've noticed when I've posted to MrExcel I've gotten gotten replies on ExcelForum. Can you comment on this link? Was MrExcel merged with Excel Forum?
 
Upvote 0
No link other than a lot of regular posters frequent multiple sites and it does get irritating if you spend time answering a question on one site only to find someone has given the same or similar answer on another site.
 
Upvote 0
No link other than a lot of regular posters frequent multiple sites and it does get irritating if you spend time answering a question on one site only to find someone has given the same or similar answer on another site.

I understand, I will provide the link next time I do that.
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,099
Members
452,301
Latest member
QualityAssurance

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