lrow2

  1. K

    Excel VBA Range.sort alternative?

    Hello all, Wondering if someone could help? I am trying to sort two tabs in my workbook (three total tabs) which I am able to do with the below: Sub SortAllSheets() Sheet1.Activate Dim lrow As Long lrow = Cells(Rows.Count, 1).End(xlUp).Row Range("A1:R" & lrow).Sort key1:=Range("J1:J" &...
  2. W

    Run code depending on row number

    Hi All, I have some code I want to run which compares the last found value in one column with another. Depending on the row number, I want to do different things. Code: lRowWS1 = sht1.Cells.Find("*", searchorder:=xlByRows, searchdirection:=xlPrevious).Row lRow1 = sht1.Cells(sht1.Rows.Count...
  3. M

    Macro search in filtered area

    Hi, I have a macro which has to search in a filtered area. However when the filter is on, it searches every row, but I don't want that.. Can anyone tell me how the macro can search only the rows which has been filtered? Sub Doorlooptijd() Dim orderNr As String Dim matNr As String Dim lRow As...
  4. N

    Color Fill on Cells

    I am trying to figure out how to change the fill color on each row of data that contains has a matching value from another spreadsheet. My code works but it is filling the entire row across all of the columns on the spreadsheet, I would like to only fill the columns that have data in them...in...
  5. S

    INSTR or MATCH - Unsure how to tackle logic

    Good Morning Experts, Please see code below. I tried to explain what I want to do, but I'm having trouble putting it all together. Any solutions, guidance or advice would be appreciated. Sub HELPME() Dim lrow As Long Dim myworksheet As Worksheet Dim myWorksheet2 As Worksheet Dim lrow2 As...

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