rangecellsi

  1. A

    Loop to merge cells does not work on last few rows

    Hi all! Im having some issues with my code below. It works fine on majority of rows, but towards the end, it's having some issues. What my code does is this: - if values of cells (i,j) and cells (i+r,j), basically 1 cell and the cell below it are the same, then they merge and other columns...
  2. J

    FIND STRING IN RANGE and FORMAT Cell

    Trying to find the text "XLD XLD" and format row accordingly, not having much luck, appreciate the assistance. Dim i As Long For i = Lastrow To 1 Step -1 If Cells(i, 1) = “XLD” Then '‘ You can change this text Range(Cells(i, 2), Cells(i, 5)).FontStyle = "Bold"...
  3. S

    Alternative to For Next Loop

    I have this code; For i = 2 To LastRow If Cells(i, "D").Value = "" Then Range(Cells(i, "B"), Cells(i, "C")).ClearContents End If Next i What is the fastest way to get this done? Thanks!
  4. J

    mismatch 13/ Nested if

    Can someone explain why the second If (Nested) is causing a mismatch 13 error, and how to fix ? Thank You jamada Dim LastRow As Long Dim i As Long LastRow = Range("B" & Rows.Count).End(xlUp).Row For i = LastRow To 2 Step -1 If Cells(i, 2).Value > 0 Then Range(Cells(i, 8)...
  5. J

    VBA Cells and if

    Hi, the first IF works very well thanks to the contributors/helpers on this board. Question though, id like to delete a row if certain cells contain a certain color (RGB120,20,50). However not working well for me, any suggestions please? For i = LastRow To 2 Step -1 If Cells(i, 2).Value >...

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