Group: microsoft.public.word.vba.general
From: "Graham Mayor"
Date: Saturday, April 05, 2008 2:48 AM
Subject: Re: macro to toggle Autotext Menu on & off

Sub ViewAutotextMenu()
With CommandBars("AutoText")
.Visible = Not .Visible
End With
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


JustSomeGuy wrote:
> Seems like it should go something like this - but it doesn't work:
>
> Sub ViewAutotextMenu()
> IF CommandBars("AutoText").Visible = True
> Then CommandBars("AutoText").Visible = False
> End If
> if CommandBars("AutoText").Visible = False
> Then CommandBars("AutoText").Visible = True
> End If
> End Sub