Reply
 
Thread Tools Display Modes
  #1   Report Post  
Linda3365
 
Posts: n/a
Default shortcut to insert line

In (dare I mention it?) WordPerfect, I had a shortcut to insert an underline
to the right-hand margin of the page. It was the handiest macro I had. Can it
be done in Word 2003?
  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

On Fri, 15 Apr 2005 15:03:02 -0700, Linda3365
wrote:

In (dare I mention it?) WordPerfect, I had a shortcut to insert an underline
to the right-hand margin of the page. It was the handiest macro I had. Can it
be done in Word 2003?


Put this macro in your Normal.dot or another global template (see
http://www.gmayor.com/installing_macro.htm) and assign a keyboard
shortcut to it
(http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm).

Public Sub RightMarginUnderline()
Dim tabPos As Single
With Selection.Sections(1).PageSetup
tabPos = .PageWidth - .RightMargin - .LeftMargin
End With
With Selection
.Paragraphs(1).Range.Select
.MoveEnd Unit:=wdCharacter, Count:=-1
.Collapse wdCollapseEnd
.Paragraphs(1).TabStops.Add _
Position:=tabPos, _
Alignment:=wdAlignTabRight, _
Leader:=wdTabLeaderLines
.InsertAfter vbTab
End With
End Sub


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert a line in Word that can be filled in (w/ type) and . cope49 Microsoft Word Help 3 May 19th 23 08:48 PM
No "symbols" line under "Insert" in Microsoft Word 2002 Lee McKnight Microsoft Word Help 6 September 6th 06 04:27 AM
How do I insert a signature line into a document? Johnni Microsoft Word Help 1 March 24th 05 09:06 PM
How to insert a line to fill in info on after printing it out? Kelly Microsoft Word Help 1 February 7th 05 03:45 PM
How to insert a line to fill in info on after printing it out? mckamb Microsoft Word Help 0 February 7th 05 03:31 PM


All times are GMT +1. The time now is 05:35 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"