![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am hoping this is relatively simple...
I have several word documents containing meeting minutes/technical documentation. I want to be able to highlight a phrase, then execute a macro that opens the standard Outlook Task Creation Dialog. I would like for the highlighted phrase to be in the body of the task, and then I can easily fill in the name, due date, etc., in the dialog. One easy way I thought of would be to formulate the command line syntax and then just execute the command line, but I cannot figure out how to do that, either. As you have probably deduced, I am fairly new to VBA... I have written a few dozen VBA procedures in Excel but this is my first try at Word and/or Outlook... Help! Jim -- -------------- Jim Conrady |
Ads |
#2
|
|||
|
|||
![]()
Am Sun, 17 Sep 2006 08:19:02 -0700 schrieb Jim Conrady:
If the code is located in Word you need to add a reference to Outlook via Tools/References, if itīs in Outlook then add a ref to Word. After that you can use the Object Browser (F2) to get a lot of informations about the object models, their properties etc. A task in Outlook youīd create with the CreateItem method. In Word you can get the selection text with Window.Selection. You can call its Copy method to copy that selection into the clipboard, but thereīs no method in Outlook to insert that clipboard content into an itemīs Body. This, e.g., writes a selected text into an itemīs Body property, assuming that Task is a valid object variable for the TaskItem and Wd one for a Word.Document: Task.Body = Wd.Windows(1).Selection.Text -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- I am hoping this is relatively simple... I have several word documents containing meeting minutes/technical documentation. I want to be able to highlight a phrase, then execute a macro that opens the standard Outlook Task Creation Dialog. I would like for the highlighted phrase to be in the body of the task, and then I can easily fill in the name, due date, etc., in the dialog. One easy way I thought of would be to formulate the command line syntax and then just execute the command line, but I cannot figure out how to do that, either. As you have probably deduced, I am fairly new to VBA... I have written a few dozen VBA procedures in Excel but this is my first try at Word and/or Outlook... Help! Jim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restoring Standard Task Form in Outlook 2003 | Gordon Staley | Outlook - Using Forms | 2 | June 9th 06 03:31 PM |
Problem Printing Customized Outlook Form using Word Template | ajkim001 | Outlook - Using Forms | 15 | April 28th 06 05:28 PM |
How to use custom task form in Web Outlook | DougMunday | Outlook - Using Forms | 1 | April 7th 06 12:18 PM |
Word error when printing Outlook form | Martin | Outlook - Using Forms | 0 | March 1st 06 12:04 PM |
Where do I get form templates for Task or Calendar in Outlook? | umponcel | Outlook - Using Forms | 1 | February 15th 06 08:51 PM |