Vba all round border code

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,277
Office Version
  1. 2007
Platform
  1. Windows
Hi,
Can you advise please why the border around the whole cell isnt applied when i past a value please.


Rich (BB code):
    Target.Interior.Color = vbGreen
    Else
    Target.Interior.Color = vbRed
    End If
    With ActiveSheet.Range("E4:E28")
        .Font.Size = 11
        .Font.Bold = True
        .Font.Color = vbBlack
        .Font.Name = "Calibri"
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter
        Range("E4:E28").BorderAround xlContinuous, xlThin
        Range("E4:E28").NumberFormat = "@"
    End With
    Application.ScreenUpdating = True

End Sub
 
I'll have a look at your other post but no guarantees as I am in the middle of doing some proper work and just looking in to get a breather from it.

Btw I have edited one of the codes to show what you would have to do for diagonals.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

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