From: Me on 3 Jan 2010 00:59 Hi all, I'm using MS Office 2003 on an XP OS. Whenever I start Word by double clicking the shortcut to a document that I have previously saved to the HDD, I find that two unwanted toolbars appear in the middle of the open window. Toolbars that I have never used. Nothing I do seems to stop them from appearing each and every time I open this document. What's up with that? Hope someone can give me some good advice that will eliminate them permanently. All assistance is greatly appreciated, Cheers Buck
From: Graham Mayor on 2 Jan 2010 04:15 Which toolbars? My guess is the Control Toolbox and the associated Design Mode toolbar? See http://word.tips.net/Pages/T001596_Suppressing_the_Control_Toolbox_Toolbar.html -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Me" <a(a)b.com> wrote in message news:OcLcKo4iKHA.1824(a)TK2MSFTNGP04.phx.gbl... > Hi all, > > I'm using MS Office 2003 on an XP OS. Whenever I start Word by double > clicking the shortcut to a document that I have previously > saved to the HDD, I find that two unwanted toolbars appear in the middle > of the open window. Toolbars that I have never used. > Nothing I do seems to stop them from appearing each and every time I open > this document. What's up with that? Hope someone can > give me some good advice that will eliminate them permanently. > > All assistance is greatly appreciated, > > Cheers > Buck >
From: Me on 3 Jan 2010 22:47 Hi Graham, thanks for your help. I tried to run the Macro that you specify on the website, but I get this error message: Run-time error '6068': Programmatic assess to Visual Basic Project is not trusted. Then when I click Debug it shows the following: Sub MFC_sort() ' ' MFC_sort Macro ' Macro recorded 12/31/2009 by Mike the Kiwi ' Sub CloseDesignWindows() Dim K As Long With ActiveDocument.VBProject <<== WITH THIS LINE HIGHLIGHTED IN YELLOW For K = 1 To .VBComponents.Count With .VBComponents(K) If .HasOpenDesigner Then .DesignerWindow.Close End With Next End With End Sub Sub Macro1() ' ' Macro1 Macro ' Macro recorded 1/3/2010 by Mike the Kiwi ' End Sub "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message news:uo$Tqw4iKHA.5596(a)TK2MSFTNGP06.phx.gbl... > Which toolbars? My guess is the Control Toolbox and the associated Design Mode toolbar? See > http://word.tips.net/Pages/T001596_Suppressing_the_Control_Toolbox_Toolbar.html > > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web site www.gmayor.com > Word MVP web site http://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > > > "Me" <a(a)b.com> wrote in message news:OcLcKo4iKHA.1824(a)TK2MSFTNGP04.phx.gbl... >> Hi all, >> >> I'm using MS Office 2003 on an XP OS. Whenever I start Word by double clicking the shortcut to a document that I have >> previously >> saved to the HDD, I find that two unwanted toolbars appear in the middle of the open window. Toolbars that I have never used. >> Nothing I do seems to stop them from appearing each and every time I open this document. What's up with that? Hope someone can >> give me some good advice that will eliminate them permanently. >> >> All assistance is greatly appreciated, >> >> Cheers >> Buck >> > >
From: Graham Mayor on 3 Jan 2010 02:35 Tools > Options > Security > Macro Security > Security Level - Medium Tools > Options > Security > Macro Security > Trusted Publishers > Check both 'Trust all installed add-ins and templates' and 'Trust access to Visual Basic Project'. -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Me" <a(a)b.com> wrote in message news:OQ2oIDEjKHA.1536(a)TK2MSFTNGP06.phx.gbl... > Hi Graham, thanks for your help. > > I tried to run the Macro that you specify on the website, but I get this > error message: > > > Run-time error '6068': > > Programmatic assess to Visual Basic Project is not trusted. > > > > Then when I click Debug it shows the following: > > > Sub MFC_sort() > ' > ' MFC_sort Macro > ' Macro recorded 12/31/2009 by Mike the Kiwi > ' > Sub CloseDesignWindows() > Dim K As Long > With ActiveDocument.VBProject <<== WITH THIS LINE > HIGHLIGHTED IN YELLOW > For K = 1 To .VBComponents.Count > With .VBComponents(K) > If .HasOpenDesigner Then .DesignerWindow.Close > End With > Next > End With > End Sub > Sub Macro1() > ' > ' Macro1 Macro > ' Macro recorded 1/3/2010 by Mike the Kiwi > ' > End Sub > > > > > > > "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message > news:uo$Tqw4iKHA.5596(a)TK2MSFTNGP06.phx.gbl... >> Which toolbars? My guess is the Control Toolbox and the associated Design >> Mode toolbar? See >> http://word.tips.net/Pages/T001596_Suppressing_the_Control_Toolbox_Toolbar.html >> >> -- >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> Graham Mayor - Word MVP >> >> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> >> >> >> "Me" <a(a)b.com> wrote in message >> news:OcLcKo4iKHA.1824(a)TK2MSFTNGP04.phx.gbl... >>> Hi all, >>> >>> I'm using MS Office 2003 on an XP OS. Whenever I start Word by double >>> clicking the shortcut to a document that I have previously >>> saved to the HDD, I find that two unwanted toolbars appear in the middle >>> of the open window. Toolbars that I have never used. >>> Nothing I do seems to stop them from appearing each and every time I >>> open this document. What's up with that? Hope someone can >>> give me some good advice that will eliminate them permanently. >>> >>> All assistance is greatly appreciated, >>> >>> Cheers >>> Buck >>> >> >> > >
From: Graham Mayor on 3 Jan 2010 02:41
I posted a tad hastily. You have also enclosed a macro within a macro. Change what you posted, to what is on the web site i.e. Sub CloseDesignWindows() Dim K As Long With ActiveDocument.VBProject For K = 1 To .VBComponents.Count With .VBComponents(K) If .HasOpenDesigner Then .DesignerWindow.Close End With Next End With End Sub http://www.gmayor.com/installing_macro.htm -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Me" <a(a)b.com> wrote in message news:OQ2oIDEjKHA.1536(a)TK2MSFTNGP06.phx.gbl... > Hi Graham, thanks for your help. > > I tried to run the Macro that you specify on the website, but I get this > error message: > > > Run-time error '6068': > > Programmatic assess to Visual Basic Project is not trusted. > > > > Then when I click Debug it shows the following: > > > Sub MFC_sort() > ' > ' MFC_sort Macro > ' Macro recorded 12/31/2009 by Mike the Kiwi > ' > Sub CloseDesignWindows() > Dim K As Long > With ActiveDocument.VBProject <<== WITH THIS LINE > HIGHLIGHTED IN YELLOW > For K = 1 To .VBComponents.Count > With .VBComponents(K) > If .HasOpenDesigner Then .DesignerWindow.Close > End With > Next > End With > End Sub > Sub Macro1() > ' > ' Macro1 Macro > ' Macro recorded 1/3/2010 by Mike the Kiwi > ' > End Sub > > > > > > > "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message > news:uo$Tqw4iKHA.5596(a)TK2MSFTNGP06.phx.gbl... >> Which toolbars? My guess is the Control Toolbox and the associated Design >> Mode toolbar? See >> http://word.tips.net/Pages/T001596_Suppressing_the_Control_Toolbox_Toolbar.html >> >> -- >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> Graham Mayor - Word MVP >> >> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> >> >> >> "Me" <a(a)b.com> wrote in message >> news:OcLcKo4iKHA.1824(a)TK2MSFTNGP04.phx.gbl... >>> Hi all, >>> >>> I'm using MS Office 2003 on an XP OS. Whenever I start Word by double >>> clicking the shortcut to a document that I have previously >>> saved to the HDD, I find that two unwanted toolbars appear in the middle >>> of the open window. Toolbars that I have never used. >>> Nothing I do seems to stop them from appearing each and every time I >>> open this document. What's up with that? Hope someone can >>> give me some good advice that will eliminate them permanently. >>> >>> All assistance is greatly appreciated, >>> >>> Cheers >>> Buck >>> >> >> > > |