format word Document usin VB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amit

    format word Document usin VB

    I am tryin to format a word document using Visual Basic.
    but seems to be havin problem findin the sytax or VB and VBA..

    The Paragrapuh goes like this

    01 name Details something somethin
    somethin big and verry big some


    somethin like this i am trying like ...have tried a lot can someone
    help me how can i format da above said .. para ...
    cheers in advance ..


    w1.Selection.Pa ragraphs.Alignm ent = wdAlignParagrap hLeft

    w1.Selection.Ty peText ara(1)
    'w1.Selection.P aragraphFormat. SpaceAfter = 6

    'w1.Selection.P aragraphFormat. TabStops.Add Position:=122

    w1.ActiveDocume nt.Paragraphs(2 ).Range.InsertB efore Text:="In the
    beginning "

    'w1.ActiveDocum ent.Content.Par agraphFormat.Sp ace2
    'w1.Selection.T ypeText ara(2)
Working...