View Single Post
  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Recording macros

Then you need something like

Sub Duplicate_Para()
With Selection
.StartOf Unit:=wdParagraph
.MoveEnd Unit:=wdParagraph
.Copy
.EndKey
.TypeParagraph
.Paste
.Delete
End With
End Sub

http://www.gmayor.com/installing_macro.htm
--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



cantgetit wrote:
"Graham Mayor" wrote:

What is it that you think this macro is supposed to do?

From your description, it selects the text from the cursor to the
end of the current paragraph
It copies the selected text to the clipboard, then pastes it back
over the selection, so while the macro is undoubtedly working, it
will not appear to do anything as the end result will be the same as
what you started with (though you should still have the selected
text stored in the clipboard).

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



cantgetit wrote:
Can anyone help I am confused.
trying to record a macro by copying these are the steps I am doing

record macro assign keyboard shortcut
ctrl shift down arrow to select text
ctrl c to copy
ctrl v to past
stop recoring macro button

I must be missing something as it is not working

Can you see what I am missing please

thanks in advance


Hi Graham

I am trying to insert a recurring paragraph of text into a document
with a keystroke