Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Adapted from the recorder. What must be changed to create a border box
around boxrng? Thanks. Sub t() Dim startcell As Range, endcell As Range, boxrng As Range Dim b As Workbook Dim s As Worksheet Set b = ActiveWorkbook Set s = b.Sheets("Sheet1") Set startcell = s.Cells(2, 2) Set endcell = s.Cells(5, 5) Set boxrng = Range(startcell, endcell) boxrng.Borders(xlDiagonalDown).LineStyle = xlNone boxrng.Borders(xlDiagonalUp).LineStyle = xlNone boxrng.Borders(xlEdgeLeft).LineStyle = xlContinous boxrng.Borders(xlEdgeTop).LineStyle = xlContinuous boxrng.Borders(xlEdgeBottom).LineStyle = xlContinous boxrng.Borders(xlEdgeRight).LineStyle = xlContinuous boxrng.Borders(xlInsideVertical).LineStyle = xlNone boxrng.Borders(xlInsideHorizontal).LineStyle = xlNone End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create a Range Name? | New Users to Excel | |||
Create Named Range in VBA | Excel Programming | |||
How do I create this range? | Excel Programming | |||
Create/copy combo boxes in one range if condition is met in a different range | Excel Programming | |||
how do i create range names ? | Excel Worksheet Functions |