Visual Basic (VB and VBA)

Copyright 1999-2001 Christopher Greaves. All rights reserved.
Home Page and email to [email protected]
If in doubt, record a macro and inspect the entrails!

 

 

Please read the DISCLAIMER.

Here is an INDEX to all the procedures.

You will probably need one copy of my GLOBAL DECLARATIONS.



Public Function lngInsertLeftColumn(rngTbl As Range) As Long
' Procedure:    lngInsertLeftColumn
' Description:  Insert one column at the left of the table
' By:           Chris Greaves Inc.
' Inputs:       RANGE of table.
' Returns:      None.
' Assumes:      None.
' Side Effects: Page layout may change.
' Tested:       By the calls below.
    rngTbl.Columns.Add BeforeColumn:=rngTbl.Tables(1).Columns(1)
    With rngTbl.Tables(1).Columns(1).Cells
        .Borders(wdBorderLeft).LineStyle = wdLineStyleNone
        .Borders(wdBorderTop).LineStyle = wdLineStyleNone
        .Borders(wdBorderBottom).LineStyle = wdLineStyleNone
        .Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
        .Borders.Shadow = False
    End With
    lngInsertLeftColumn = rngTbl.Tables(1).Columns.Count
'Sub TESTlngInsertLeftColumn()
'Documents.Add
'ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=8, NumColumns:=8
'MsgBox lngInsertLeftColumn(Selection.Tables(1).Range)
'End Sub
End Function

We all knew nothing when we started …
Home Page and Contact Information
Send email to [email protected].
This page was last updated Thursday, November 15, 2001

 

 

Hosted by www.Geocities.ws

1

Visual Basic (VB and VBA)

Copyright 1999-2001 Christopher Greaves. All rights reserved.
Home Page and email to [email protected]
If in doubt, record a macro and inspect the entrails!

 

 

Please read the DISCLAIMER.

Here is an INDEX to all the procedures.

You will probably need one copy of my GLOBAL DECLARATIONS.

Public Function lngInsertLeftColumn(rngTbl As Range) As Long
' Procedure:    lngInsertLeftColumn
' Description:  Insert one column at the left of the table
' By:           Chris Greaves Inc.
' Inputs:       RANGE of table.
' Returns:      None.
' Assumes:      None.
' Side Effects: Page layout may change.
' Tested:       By the calls below.
    rngTbl.Columns.Add BeforeColumn:=rngTbl.Tables(1).Columns(1)
    With rngTbl.Tables(1).Columns(1).Cells
        .Borders(wdBorderLeft).LineStyle = wdLineStyleNone
        .Borders(wdBorderTop).LineStyle = wdLineStyleNone
        .Borders(wdBorderBottom).LineStyle = wdLineStyleNone
        .Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
        .Borders.Shadow = False
    End With
    lngInsertLeftColumn = rngTbl.Tables(1).Columns.Count
'Sub TESTlngInsertLeftColumn()
'Documents.Add
'ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=8, NumColumns:=8
'MsgBox lngInsertLeftColumn(Selection.Tables(1).Range)
'End Sub
End Function

We all knew nothing when we started …
Home Page and Contact Information
Send email to [email protected].
This page was last updated Thursday, November 15, 2001

 

 

Hosted by www.Geocities.ws

1