locked
Changing the font style of a documenta in one go RRS feed

  • Question

  • Hi,

    I am using Helpndoc trial version to create a documentation for evaluation purpose the look and feel of this is similiar to the word i want to change the font style to verdena 11 pt of all the topics mentioned in the documentation at one go ,please suggest something .

    ANy help is appreciated 

    Thanks


    winxpsp3user

    Monday, May 28, 2012 9:42 AM

Answers

  • Does the process involve Microsoft Word at all? If not, it's unlikely that you can get help here. You'll have to ask in a forum that deals with the HelpnDoc application.

    Stefan Blom, Microsoft Word MVP
    • Marked as answer by Jaynet Zhang Monday, June 4, 2012 2:11 AM
    Tuesday, May 29, 2012 10:36 AM

All replies

  • Hi,

    As my understanding, you want to change the font of headings in the Word. If I have missed the point, feel free to let me know.

    Try to use the following code:

    Public Sub Heading_font()

        Dim astrHeadings As Variant

        Dim strText As String

        Dim intLevel As Integer

        Dim intItem As Integer

        Dim i As Integer

     

        astrHeadings = _

         ActiveDocument.GetCrossReferenceItems(wdRefTypeHeading)

        

        For intItem = LBound(astrHeadings) To UBound(astrHeadings)       

        Next intItem

        For i = 1 To intItem - 1

        With Selection.Find

            .Text = Trim$(astrHeadings(i))

            .Replacement.Text = ""

            .Forward = True

            .Wrap = wdFindContinue

            .Format = False

            .MatchCase = False

            .MatchWholeWord = False

            .MatchByte = True

            .MatchWildcards = False

            .MatchSoundsLike = False

            .MatchAllWordForms = False

        End With

        Selection.Find.Execute

        Selection.Font.NameAscii = "verdena"

        Selection.Font.Size = 11

    Next

    End Sub


    Jaynet Zhang

    TechNet Community Support

    Tuesday, May 29, 2012 7:12 AM
  • Hi Jaynet

    Thanks for the reply however where do i use this code i have got HelpnDoc v 3.5.1 and does this code works as a default setting , actually i want to create an online help like http://www.helpndoc.com/sites/default/files/documentation/html/index.html i used my own contents and keywords to define an index however when i generate the html documentation it does not produce something like the format in the above link above .

    Thanks & awaiting an earliest reply.

    Varun


    winxpsp3user

    Tuesday, May 29, 2012 7:21 AM
  • Does the process involve Microsoft Word at all? If not, it's unlikely that you can get help here. You'll have to ask in a forum that deals with the HelpnDoc application.

    Stefan Blom, Microsoft Word MVP
    • Marked as answer by Jaynet Zhang Monday, June 4, 2012 2:11 AM
    Tuesday, May 29, 2012 10:36 AM
  • HI Stefan

    The look,feel and usage is something similiar to the MS word or if you could suggest something regarding creating a HTML online help using MS word and to have the look of the documentation like  http://www.helpndoc.com/sites/default/files/documentation/html/index.html


    winxpsp3user

    Tuesday, May 29, 2012 10:48 AM
  • Hi,

    My code only work for Microsoft Word. If the program you used is not Word, the code will make no sense.


    Jaynet Zhang

    TechNet Community Support

    Wednesday, May 30, 2012 2:09 AM