change font attributes in task text 
Author Message
 change font attributes in task text

With Windows 98se, OL/Office 2k SR-1:
When I have a task window open, so that the text of the task can be edited,
I'd like to be able to select, say, one line, or one word, click a toolbar
button and apply "strikethrough" formatting.  I've got the button set up,
but I can't get code to work that way.  Variations on this code don't work,
and I can't figure out how to fix it:

Outlook.ActiveExplorer.Selection.Font.strikethrough = True

[Actually, a toggle button that could apply or dis-apply strikethrough would
be ideal.]
Any suggestions would be greatly appreciated.  Thanks.



Wed, 26 Nov 2003 01:51:46 GMT  
 change font attributes in task text
Take a look at the object browser. The Selection object for the Outlook
model does not support a Font property. You're probably thinking of the
Selection in Word.

Outlook applies fonts in folders via automatic formatting rules -- View |
Current View | Customize Current View.

--

Sue Mosher, Outlook MVP
Author of
     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
     Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> With Windows 98se, OL/Office 2k SR-1:
> When I have a task window open, so that the text of the task can be
edited,
> I'd like to be able to select, say, one line, or one word, click a toolbar
> button and apply "strikethrough" formatting.  I've got the button set up,
> but I can't get code to work that way.  Variations on this code don't
work,
> and I can't figure out how to fix it:

> Outlook.ActiveExplorer.Selection.Font.strikethrough = True

> [Actually, a toggle button that could apply or dis-apply strikethrough
would
> be ideal.]
> Any suggestions would be greatly appreciated.  Thanks.



Wed, 26 Nov 2003 02:01:40 GMT  
 change font attributes in task text
Understood.  However, I know that I can select a word or line of task
subject text and change the font of that selection manually, with the
toolbar options.  I'm just trying to automate that series of steps.

--
Michael Williams
Rochester, NY


Quote:
> Take a look at the object browser. The Selection object for the Outlook
> model does not support a Font property. You're probably thinking of the
> Selection in Word.

> Outlook applies fonts in folders via automatic formatting rules -- View |
> Current View | Customize Current View.

> --

> Sue Mosher, Outlook MVP
> Author of
>      Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
>      Microsoft Outlook 2000 E-mail and Fax Guide
> Outlook and Exchange solutions at http://www.slipstick.com



> > With Windows 98se, OL/Office 2k SR-1:
> > When I have a task window open, so that the text of the task can be
> edited,
> > I'd like to be able to select, say, one line, or one word, click a
toolbar
> > button and apply "strikethrough" formatting.  I've got the button set
up,
> > but I can't get code to work that way.  Variations on this code don't
> work,
> > and I can't figure out how to fix it:

> > Outlook.ActiveExplorer.Selection.Font.strikethrough = True

> > [Actually, a toggle button that could apply or dis-apply strikethrough
> would
> > be ideal.]
> > Any suggestions would be greatly appreciated.  Thanks.



Wed, 26 Nov 2003 23:57:35 GMT  
 change font attributes in task text
I reread your message and now see that you're talking about formatting
inside the message itself. Sorry, there's no way to do that
programmatically. Outlook provides no objects related to selected text in a
task item or formatting of that text.

--

Sue Mosher, Outlook MVP
Author of
     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
     Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> Understood.  However, I know that I can select a word or line of task
> subject text and change the font of that selection manually, with the
> toolbar options.  I'm just trying to automate that series of steps.



> > > With Windows 98se, OL/Office 2k SR-1:
> > > When I have a task window open, so that the text of the task can be
> > edited,
> > > I'd like to be able to select, say, one line, or one word, click a
> toolbar
> > > button and apply "strikethrough" formatting.  I've got the button set
> up,
> > > but I can't get code to work that way.  Variations on this code don't
> > work,
> > > and I can't figure out how to fix it:

> > > Outlook.ActiveExplorer.Selection.Font.strikethrough = True

> > > [Actually, a toggle button that could apply or dis-apply strikethrough
> > would
> > > be ideal.]
> > > Any suggestions would be greatly appreciated.  Thanks.



Thu, 27 Nov 2003 02:43:39 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help - Can't Change Merged Text Font Attributes

2. change font attributes excel comment box

3. change font attributes excel comment box

4. font attributes in text & memo fields

5. errors changing font attributes

6. Changing font attributes in an unbound field.

7. change font attributes excel comment box

8. font changes and attributes

9. Can I Change attributes in Unbound Text field?

10. Text boxes randomly change attributes


 
Powered by phpBB® Forum Software © phpBB Group