General discussion

Locked

While printing a VB-Word document......

By MuthuVenkatsubramanian ·
Hi!
Iam printing values taken from database through a vb program in to a ms-word document.While printing,i found the need for sensing the line number of word document for alignment.Is there any function available to do the same? Bye!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

While printing a VB-Word document......

by DKlippert In reply to While printing a VB-Word ...

This may give you some direction.
Sub WhereAmI()
'
MsgBox "The selection is on Line " & _
Selection.Information(wdFirstCharacterLineNumber) & " of page " _
& Selection.Information(wdNumberOfPagesInDocument)
End Sub

Collapse -

While printing a VB-Word document......

It really helped me a lot.Thank you!

Collapse -

While printing a VB-Word document......

This question was closed by the author

Related Discussions

Related Forums