Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting a single line into Word at the cursor's position?!? 1

Status
Not open for further replies.

ftpdoo

Programmer
Aug 9, 2001
202
GB
Hi,

I'm using Word 2000 & I wish to insert a line into word at the current cusor position.

ActiveDocument.Shapes.AddLine(112.05, 81.2, 472.05, 81.2).Select

This will insert it at a specific location. But how can I use this to insert at the current position???

Many Thankx,
Jonathan
 
Cant you use:

Selection.Borders(wdBorderBottom).LineStyle = wdLineStyleSingle

or do you really need a graphic?

M.
 
Brilliant Job... This is exactly what I was after!

Thankx,
Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top