Colocar borde menos grueso al codigo

dragonfire33

Board Regular
Joined
Oct 7, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Buenos días como puedo colocar un borde más delgado a este codigo
VBA Code:
Sub PonerBordes()
Application.ScreenUpdating = False
For x = 1 To ActiveSheet.UsedRange.Rows.Count
   For y = [Z1].Column To [BG1].Column
      Cells(x, y).BorderAround LineStyle:=xlLineStyleNone
      If Mid([Y10], 1, 2) = Mid(Cells(x, y), 1, 2) Or _
         Mid([Y10], 2, 2) = Mid(Cells(x, y), 2, 2) Or _
         Mid([Y10], 3, 2) = Mid(Cells(x, y), 3, 2) Or _
        (Mid([Y10], 1, 1) = Mid(Cells(x, y), 1, 1) And Mid([Y10], 3, 1) = Mid(Cells(x, y), 3, 1)) Or _
        (Mid([Y10], 1, 1) = Mid(Cells(x, y), 1, 1) And Mid([Y10], 4, 1) = Mid(Cells(x, y), 4, 1)) Or _
        (Mid([Y10], 2, 1) = Mid(Cells(x, y), 2, 1) And Mid([Y10], 4, 1) = Mid(Cells(x, y), 4, 1)) Then
         Cells(x, y).BorderAround ColorIndex:=5, Weight:=xlThick
      End If
   Next
Next
End Sub
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Solo cambia esta parte:
VBA Code:
, Weight:=xlThick
a esto
VBA Code:
, Weight:=xlThin
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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