|
-
Sep 17th, 2002, 05:01 AM
#1
Thread Starter
New Member
macro help
i need a macro to run in excel that will put a boldish border round a group of cells then merge a group of cells to make a lined page for notes
can anyone help me
-
Sep 17th, 2002, 05:06 AM
#2
-= B u g S l a y e r =-
use the macro recorder ?
VB Code:
Sub Test()
'
' Test Macro
' Macro recorded 17.09.2002 by peet
'
'
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
Range("D11:F15").Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
End Sub
just a suggestion...
-
Sep 17th, 2002, 05:44 AM
#3
Thread Starter
New Member
thanks for the coding
it has given me a blank page
the range i am using is
e to k
cell range 7 to 1400
-
Sep 17th, 2002, 05:51 AM
#4
Thread Starter
New Member
the effect i am looking for is that of a lined book if possible
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|