Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As a total noob, working from MS Access VBA,
I find myself doing a lot of this: ------------------------------------------- 2010 With theWS ' ---------------------------------------------- ' Place Deal/Tranche name centered at top with ' borders and colored background 2020 With .Range(.Cells(mRowNum_Header1, mColNum_First), ..Cells(mRowNum_Header1, mColNum_Last)) 2021 .Merge 2022 .Value = theDealName & "-" & theTrancheNumber 2023 .HorizontalAlignment = xlCenter 2029 .Interior.ColorIndex = gExcelColor_MediumBlue 2040 With .Borders(xlLeft) 2041 .Weight = xlMedium 2042 .LineStyle = xlSolid 2049 End With 2040 With .Borders(xlRight) 2041 .Weight = xlMedium 2042 .LineStyle = xlSolid 2049 End With 2040 With .Borders(xlTop) 2041 .Weight = xlMedium 2042 .LineStyle = xlSolid 2049 End With 2040 With .Borders(xlBottom) 2041 .Weight = xlMedium 2042 .LineStyle = xlSolid 2049 End With 2049 End With 2999 End With ------------------------------------------ I tried .BordersAround, but Excel didn't buy it. Is there something else? -- PeteCresswell |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
borders | Excel Discussion (Misc queries) | |||
Make instructions clear, concise and in plain english. | Excel Discussion (Misc queries) | |||
Concise border removal method | Excel Programming | |||
Borders | Excel Programming | |||
Help with borders | Excel Programming |