Macro didn't run in 2007

G

==Garfield==

I create some icon in the ribbon and call the macro created previous in 2003
but when i click on this icon in 2007. It will prompt me that the macro
sercuity dialog box. I have set the sercuity to enable all macro, any idea?

This is my xlm:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabHome">
<group idMso="GroupFont" visible="false" />
</tab>
<tab id="CustomTab" label="House Style">
<group id="SampleGroup1" label="Heading">
<button id="HButton1" size="normal"
label="H1"
onAction="ThisDocument.Header1" />
<button id="HButton2" size="normal"
label="H2"
onAction="ThisDocument.Header2" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
 
C

Cindy M.

Hi =?Utf-8?B?PT1HYXJmaWVsZD09?=,
I create some icon in the ribbon and call the macro created previous in 2003
but when i click on this icon in 2007. It will prompt me that the macro
sercuity dialog box. I have set the sercuity to enable all macro, any idea?
I can't recall having ever seen a macro name specified for OnAction include a
".". What if you remove: ThisDocument. so that only "Heading1" is assigned to
the OnAction attribute?
This is my xlm:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabHome">
<group idMso="GroupFont" visible="false" />
</tab>
<tab id="CustomTab" label="House Style">
<group id="SampleGroup1" label="Heading">
<button id="HButton1" size="normal"
label="H1"
onAction="ThisDocument.Header1" />
<button id="HButton2" size="normal"
label="H2"
onAction="ThisDocument.Header2" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
G

Greg Maxey

Cindy,

I do it all the time. I usually put my Ribbon macros in a module named
RibbonControl:
onAction="RibbonControl.ToggleonAction"
Hi =?Utf-8?B?PT1HYXJmaWVsZD09?=,

I can't recall having ever seen a macro name specified for OnAction
include a ".". What if you remove: ThisDocument. so that only
"Heading1" is assigned to the OnAction attribute?


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)


This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)

--
Greg Maxey - Word MVP

My web site http://gregmaxey.mvps.org


McCain/Palin '08 !!!
 
L

Lene Fredborg

I often use .OnAction = â€[ModuleName].[MacroName]†as used in the posted
macro (I assume that “Heading1†and “Heading2†are macro names).

It always works without problems.

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top