Colocar borde menos grueso al codigo

dragonfire33

Board Regular
Joined
Oct 7, 2021
Messages
52
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Solo cambia esta parte:
VBA Code:
, Weight:=xlThick
a esto
VBA Code:
, Weight:=xlThin
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

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