Results 1 to 4 of 4

Thread: macro help

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    3

    Question 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
    Ian

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    use the macro recorder ?

    VB Code:
    1. Sub Test()
    2. '
    3. ' Test Macro
    4. ' Macro recorded 17.09.2002 by peet
    5. '
    6.  
    7. '
    8.     Selection.Borders(xlDiagonalDown).LineStyle = xlNone
    9.     Selection.Borders(xlDiagonalUp).LineStyle = xlNone
    10.     With Selection.Borders(xlEdgeLeft)
    11.         .LineStyle = xlContinuous
    12.         .Weight = xlMedium
    13.         .ColorIndex = xlAutomatic
    14.     End With
    15.     With Selection.Borders(xlEdgeTop)
    16.         .LineStyle = xlContinuous
    17.         .Weight = xlMedium
    18.         .ColorIndex = xlAutomatic
    19.     End With
    20.     With Selection.Borders(xlEdgeBottom)
    21.         .LineStyle = xlContinuous
    22.         .Weight = xlMedium
    23.         .ColorIndex = xlAutomatic
    24.     End With
    25.     With Selection.Borders(xlEdgeRight)
    26.         .LineStyle = xlContinuous
    27.         .Weight = xlMedium
    28.         .ColorIndex = xlAutomatic
    29.     End With
    30.     Range("D11:F15").Select
    31.     With Selection
    32.         .HorizontalAlignment = xlGeneral
    33.         .VerticalAlignment = xlBottom
    34.         .WrapText = False
    35.         .Orientation = 0
    36.         .AddIndent = False
    37.         .ShrinkToFit = False
    38.         .MergeCells = True
    39.     End With
    40. End Sub

    just a suggestion...
    -= a peet post =-

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    3

    Question

    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
    Ian

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    3

    Question

    the effect i am looking for is that of a lined book if possible
    Ian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width