Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Mike Mike is offline
external usenet poster
 
Posts: 229
Default problem with copy/paste macro

I want my macro to take me to
ToolsLetters and MailingsEnvolopes and Labels...Labels
Paste the selected text in Address section
continue to OptionsDetails and select the Number Down field.

so far i have this:
Sub Macro1()
Selection.Copy
SendKeys "%L%A"
Selection.Paste
SendKeys "%O%D%D"
Dialogs(wdDialogToolsEnvelopesAndLabels).Show
End Sub

If you do it with mouse, it pastes the selected test in Addres section
automatically. When running
SendKeys "%L%O%D"
Dialogs(wdDialogToolsEnvelopesAndLabels).Show
it doesn't put the selected text in there.

Thank you,

Mike
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
problem with copy/paste macro Mike Microsoft Word Help 0 April 15th 10 08:29 AM
macro copy/paste between bookmarks MEME Microsoft Word Help 5 May 18th 08 01:49 PM
how can i disable copy/paste button through macro in c# sunil Microsoft Word Help 1 April 5th 07 06:59 PM
Help to create a macro to copy a Highlighted word and paste it? Jerry Mailmerge 2 September 14th 05 01:08 PM
Macro with copy and paste command Dudley Microsoft Word Help 1 July 8th 05 06:52 PM


All times are GMT +1. The time now is 01:12 AM.

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"