locked
vbs script for alignment RRS feed

  • Question

  • Hi, please excuse my lack of knowledge in <g class="gr_ gr_111 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="111" id="111">vbs</g> scripting but I am trying.

    I am working on a VBScript for work and can not for the life of me get the alignment to cooperate. 

    I am trying to get the document to look like this:

    Person:                   Text Here............

    Person:                   Text Here............

    I have gotten the script to Indent but it indents everything and not just the "Text: part. 

    Could someone tell how I can get the script to recognize that "President:" that alignment stops and I want to put in a different one. 

    Her is what I have so far:

     '------------------------------------------

    'Start of Script
    '------------------------------------------
    Selection.TypeParagraph
    Selection.Font.Bold = True
    Selection.TypeText "PRESIDENT:" 

    '------------------------------------------
    'Test Indent Comments
    '------------------------------------------
    Selection.Paragraphs.Indent
    '------------------------------------------
    'President Script
    Selection.Font.Bold = True

        Selection.TypeText "THE CHAIR RECOGNIZES "
        Selection.TypeText "THE SENATOR FROM " & UCase(LegMember.DistrictName)& ", "
    Selection.TypeText UCase(LegMember.Title) & " " & UCase(LegMember.LastNameCaps)

    Selection.TypeParagraph


    • Edited by Autumn73 Tuesday, February 13, 2018 8:32 PM
    Tuesday, February 13, 2018 8:29 PM