PC Review


Reply
Thread Tools Rate Thread

Create macros in Outlook 2007

 
 
cte67
Guest
Posts: n/a
 
      11th Aug 2009
The site
http://turtleflock-ol2007.spaces.live.com/blog/cns!C1013F1F9A99E3D8!579.entry
gives a nice clear description of how to create a macro in Outlook 2007.
What I tried is:

Sub Blue()
Dim objDoc As Word.Document
Dim objSelection As Word.Selection
On Error Resume Next
Set objDoc = Application.ActiveInspector.WordEditor
Set objSelection = objDoc.Windows(1).Selection
objSelection.Font.Color = wdColorBlue
Set objSelection = Nothing
Set objDoc = Nothing
End Sub

Unfortunately, this does not work. I am using Outlook 2007, and have the
latest updates (12.0.6504.5000) SP2 MSO (12.0.6425.1000) ... am running
WinXP, Service Pack 3.
 
Reply With Quote
 
 
 
 
Brian Tillman [MVP - Outlook]
Guest
Posts: n/a
 
      11th Aug 2009
"cte67" <(E-Mail Removed)> wrote in message
news:FCAB3B05-91C8-4E61-AEB0-(E-Mail Removed)...

> The site
> http://turtleflock-ol2007.spaces.live.com/blog/cns!C1013F1F9A99E3D8!579.entry
> gives a nice clear description of how to create a macro in Outlook 2007.
> What I tried is:
>
> Sub Blue()
> Dim objDoc As Word.Document
> Dim objSelection As Word.Selection
> On Error Resume Next
> Set objDoc = Application.ActiveInspector.WordEditor
> Set objSelection = objDoc.Windows(1).Selection
> objSelection.Font.Color = wdColorBlue
> Set objSelection = Nothing
> Set objDoc = Nothing
> End Sub
>
> Unfortunately, this does not work. I am using Outlook 2007, and have the
> latest updates (12.0.6504.5000) SP2 MSO (12.0.6425.1000) ... am running
> WinXP, Service Pack 3.


microsoft.public.outlook.program_vba is a better newsgroup for programming
questions.
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
cte67
Guest
Posts: n/a
 
      11th Aug 2009
I tried going to microsoft.public.outlook.program_vba ... appears to be an
invalid adr.

"Brian Tillman [MVP - Outlook]" wrote:

> microsoft.public.outlook.program_vba is a better newsgroup for programming
> questions.
> --
> Brian Tillman [MVP-Outlook]


 
Reply With Quote
 
cte67
Guest
Posts: n/a
 
      11th Aug 2009
I found it.

"Brian Tillman [MVP - Outlook]" wrote:
> microsoft.public.outlook.program_vba is a better newsgroup for programming
> questions.
> --
> Brian Tillman [MVP-Outlook]


 
Reply With Quote
 
Brian Tillman [MVP - Outlook]
Guest
Posts: n/a
 
      12th Aug 2009
"cte67" <(E-Mail Removed)> wrote in message
news:20479B52-4539-4867-BC1D-(E-Mail Removed)...

>I tried going to microsoft.public.outlook.program_vba ... appears to be an
> invalid adr.


For NNTP access, use
news://msnews.microsoft.com/microsof...ok.program_vba
For HTTP access, use
<http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba>
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create macros in Outlook 2007 cte67 Microsoft Outlook VBA Programming 5 17th Aug 2009 06:19 PM
Create macros in Outlook 2007 Linda Beauregard-Axelson Microsoft Outlook Discussion 1 6th May 2009 08:07 AM
How to create new Actions for Macros in Access 2007 Amod Microsoft Access Macros 1 25th Jul 2008 01:36 AM
Sharing Word 2007 macros with Outlook 2007 krygim Microsoft Word New Users 0 14th Nov 2007 02:36 AM
Create macros in Outlook 2007 =?Utf-8?B?aGV2Z2hpcmw=?= Microsoft Outlook Discussion 1 17th Mar 2007 01:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 AM.