Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have this code: Sub LastRow() Dim a As Integer For a = 12 To 100 ''' If Range("A" & a) = "" Then ''' LastR = a - 1 ''' Exit For ''' Else If Left(Range("A" & a), 5) = "Total" Then LastR = a - 1 Exit For Else End If Next a End Sub at the moment this code finds the last row, what I would like the code to do as well if there are empty rows above "Total" then minus them until the code finds the row with data in it. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how find max data in range in excel | Excel Discussion (Misc queries) | |||
Find a Range of Data | Excel Discussion (Misc queries) | |||
Find last used row in Range with Data above and below. | Excel Programming | |||
Help, how to find a range of data? | Excel Worksheet Functions | |||
find first data entry in range | Excel Programming |