Finding the Last Row or Column three different ways in Excel VBA - Code Included

Finding the Last Row or Column three different ways in Excel VBA - Code Included

EverydayVBA

7 лет назад

51,390 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sean Santiago
Sean Santiago - 22.09.2022 21:27

This video is so blurry and the font so small that it is barely able to be read.

Ответить
beyhan ismail
beyhan ismail - 13.05.2022 17:15

Hello there. I can find the row below the last processed row on the worksheet. My question is how can I find the last row between the waistline of two columns. (A:D) find me the last row between the columns

Ответить
Stamat Arsenikos
Stamat Arsenikos - 23.03.2022 16:51

I figured it out. Specialcells will go to the last used cell which may be empty. for example if you changed the font in a cell at bottom it will go to this cell. Have to be very careful using this. Range.Find is a better method to avoid this.

Ответить
Stamat Arsenikos
Stamat Arsenikos - 23.03.2022 11:33

it doesn't work in my spreadsheet for some reason gives me row 10054 but the last row is 554. I deleted all rows under row 554 but it still bring me last row=10054. Any idea why?

Ответить
Alan
Alan - 08.06.2021 18:12

Cells.SpecialCells(xlCellTypeLastCell)

Ответить
Vivek’s view
Vivek’s view - 13.05.2021 16:57

i need one help on vba on count with lookup please

Ответить
Sunil Choudhary
Sunil Choudhary - 30.10.2020 14:50

Send mein Vlookup drag the formula stil look until emplty

Ответить
Murali Krishna reddy
Murali Krishna reddy - 29.07.2020 20:01

Grate Information very use full keep rock..

Ответить
Rahul Gupta
Rahul Gupta - 27.11.2018 20:41

thanks.
cells.specialcells method is way easlier to do it.

Ответить
Rishabhraj Shetty
Rishabhraj Shetty - 18.12.2017 10:10

Hi, How do you find the next empty column to fill data in?

Ответить
Antranik Khokazian
Antranik Khokazian - 06.11.2017 00:27

Hi dear
I have a worksheet where I have set of number in a column which I need to apply subtraction in the next column. the problem that sometimes I might have comments in the previous cell which if apply normal formula will consider the cell which has the comment as zero value and give a wrong subtraction result.
In your example, if I am standing on "b17" and wants to apply subtraction upper cell which has a value greater than zero avoiding the gap of empty cells; in your example will be (b17 - b15) while I have to apply that in the next column "c". any good way to do that?

Ответить
idlevandal69
idlevandal69 - 15.04.2017 08:58

Hey, it's xlToLeft so code would be for your example - lastRow = Sheet1.Cells(12, Column.Count).End.(xlToLeft).Column

Ответить
TY Kim
TY Kim - 31.03.2017 14:58

Great Stuff! Thanks for making these Vids really helps alot

Ответить