Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Wed, 25 Jun 2008 15:49:25 +1000,    group: microsoft.public.word.customization.menustoolbars        back       


Macro doesn't work in toolbar - Word 2003   
Hi
I have created a report template and added a Toolbar named "Styles".  I have 
saved the template as  .dot file.

The toolbar has 5 buttons on it:  Apply Heading 1, Apply Heading 2, Apply 
Heading 3, Apply Body Text, Insert Table

All of them work when you open the document as  .dot file, but when the 
document is opened as a .doc file, the Apply Body Text doesn't work (it is a 
macro that I created).  It says "Could not open macro storage - Error 5981. 
This is driving me nuts and was wondering if anyone has any idea why this 
would happen and how to get around it.

Your help would be greatly appreciated.

Cheers
Caroline
date: Wed, 25 Jun 2008 15:49:25 +1000   author:   Caroline Horner

Re: Macro doesn't work in toolbar - Word 2003   
You don't need macros to apply styles to a toolbar. You can simply add the 
styles to the toolbar.

What does "All of them work when you open the document as  .dot file, but 
when the document is opened as a .doc file, the Apply Body Text doesn't work 
(it is a macro that I created)." mean. Are the macros saved in the template 
along with the toolbar? Is that template available to people opening the 
documents created from it?

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

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


Caroline Horner wrote:
> Hi
> I have created a report template and added a Toolbar named "Styles". I 
> have saved the template as  .dot file.
>
> The toolbar has 5 buttons on it:  Apply Heading 1, Apply Heading 2,
> Apply Heading 3, Apply Body Text, Insert Table
>
> All of them work when you open the document as  .dot file, but when
> the document is opened as a .doc file, the Apply Body Text doesn't
> work (it is a macro that I created).  It says "Could not open macro
> storage - Error 5981. This is driving me nuts and was wondering if
> anyone has any idea why this would happen and how to get around it.
>
> Your help would be greatly appreciated.
>
> Cheers
> Caroline
date: Wed, 25 Jun 2008 09:41:12 +0300   author:   Graham Mayor

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us