Re: Changing the Font with a macro button on my toolbar
From: Jay Freedman (jay.freedman_at_verizon.net)
Date: 01/18/05
- Next message: Jeff: "Re: Random Disk Error Running Word VBA Macro"
- Previous message: Gilley: "Displaying a Custom Toolbar"
- In reply to: Charlie: "Changing the Font with a macro button on my toolbar"
- Next in thread: Sean McNamara: "RE: Changing the Font with a macro button on my toolbar"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 Jan 2005 12:32:22 -0500
Hi Charlie,
Word already has built-in commands to increase and decrease the font size by
1 point, so you don't need a macro.
In the Tools > Customize dialog, click Format in the left-hand list and find
"Grow Font 1 pt" and "Shrink Font 1 pt" in the right-hand list. Drag them to
a toolbar or menu.
-- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Charlie wrote: > I made this code so I could automatically decrease the font by 1 > size, but it does the Style "Normal". I'd like it do do the Style > that is whereever I leave my cursor. How would I change this code to > do that? Thanks, Charlie > > Sub DecreaseFont() > ' > ' This will decrease the font size of the style "Normal" by 1 point > ' > > Selection.Style = ActiveDocument.Styles("Normal") > With ActiveDocument.Styles("Normal").Font > .Size = .Size - 1 > End With > End Sub
- Next message: Jeff: "Re: Random Disk Error Running Word VBA Macro"
- Previous message: Gilley: "Displaying a Custom Toolbar"
- In reply to: Charlie: "Changing the Font with a macro button on my toolbar"
- Next in thread: Sean McNamara: "RE: Changing the Font with a macro button on my toolbar"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|