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 SetStyle(strStyle As String, lngColour As Long, lngUnderline As Long)
' Procedure :   SetStyle
' Description:  Set the style to the nominated Colour and Underline.
' By:           Chris Greaves Inc.
' Inputs:       String style name, string colour, boolean Undelrine.
' Returns:      None.
' Assumes:      Nothing
' Side Effects: The text appearance may change.
' Tested:       by the calls shown below.
    With ActiveDocument.Styles(strStyle)
        .Font.ColorIndex = lngColour
        .Font.Underline = lngUnderline
    End With
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 SetStyle(strStyle As String, lngColour As Long, lngUnderline As Long)
' Procedure :   SetStyle
' Description:  Set the style to the nominated Colour and Underline.
' By:           Chris Greaves Inc.
' Inputs:       String style name, string colour, boolean Undelrine.
' Returns:      None.
' Assumes:      Nothing
' Side Effects: The text appearance may change.
' Tested:       by the calls shown below.
    With ActiveDocument.Styles(strStyle)
        .Font.ColorIndex = lngColour
        .Font.Underline = lngUnderline
    End With
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