![]() |
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
|
|||
|
|||
![]()
Hello -
I have done quite a bit of VB Scripting for Excel and Word but I think I need some basic information on how to script for Outlook. The following code will change the font of the currently selected text in a Word document to Courier New ... With Selection.Font .Name = "Courier New" End With How would I do that in Outlook? Seems like I need to get a "handle" of the mail message where the selection is being made. Any hints? Thanks! Joe |
Ads |
#2
|
|||
|
|||
![]()
You can't determine the selection in Outlook without using the SafeInspector
object from the Redemption library (http://www.dimastr.com). Otherwise, you can use the Word Object Model if Word is being used as the e-mail editor. -- Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.) Try Picture Attachments Wizard for Outlook: http://www.collaborativeinnovations.ca Blog: http://blogs.officezealot.com/legault/ "Joe HM" wrote: Hello - I have done quite a bit of VB Scripting for Excel and Word but I think I need some basic information on how to script for Outlook. The following code will change the font of the currently selected text in a Word document to Courier New ... With Selection.Font .Name = "Courier New" End With How would I do that in Outlook? Seems like I need to get a "handle" of the mail message where the selection is being made. Any hints? Thanks! Joe |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
need Outlook 2002 macro to change mail format | Maureen | Outlook and VBA | 16 | March 17th 06 07:48 AM |
shortcut to strikethrough the current selected text in a message | Beth MC | Outlook and VBA | 1 | March 3rd 06 09:36 PM |
Macro within a Mail Message | Tia | Outlook and VBA | 1 | February 7th 06 03:47 PM |
my outlook email now comes in big text with normal 12 pt selected | chasflies | Outlook - Installation | 1 | January 30th 06 11:01 PM |
Troubles adding a macro to Mail Message - help please | [email protected] | Outlook and VBA | 4 | January 27th 06 12:01 AM |