myrng

  1. P

    Neater syntax

    Hi I have quite a few repetitions of the scrip below with similar changing values. IS there a neater (For each) loop that i could simplify this code rather than just repeating it? Private Sub Worksheet_Activate() MyRng = 4 + Sheet12.Cells(3, 5) MyRng = "E5:" & "E" & MyRng...
  2. C

    Fixing Run-Time Error 438

    I have a range of cells on Sheet1, (“C2:N35”), that have values/text in. Some cells are empty and I want to merge the blank cells to the cells above with values/text in the same column. I though that the following macro would work, macro is in Module1. When I run the macro I get the following...
  3. M

    Change some font colour from black to white

    Hello,</SPAN></SPAN> The code below do highlight duplicates in various colours as shown below</SPAN></SPAN> Sub Find_Duplicate_Entry() Dim Cel As Variant Dim myrng As Range Dim clr As Long Set myrng = Range("D6:D" & Range("D65536").End(xlUp).Row) myrng.Interior.ColorIndex =...
  4. A

    Highlight ROW (Range A:L) through VBA

    I want to highlight the duplicate row & strike the contents. What to modify in the below code, to get the result Dim ma As Workbook Dim mas As Worksheet Sub test() Application.ScreenUpdating = False Application.DisplayAlerts = False 'Set Master File Set ma = ThisWorkbook Set mas =...

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