Deploying a Macro in Office 2007

J

Jane Parker

I have a series of Macros that goes through various Office documents and
automatically changes company trademark names to appear in the corporate
standard font and style. I am trying to get this working in Office 2007 and
having major problems.

I am becoming more and more frustrated with Office 2007. Microsoft seems
intent on eliminating VBA and forcing people to .NET only tools and having
to buy (and learn) Visual Studio.

In Word I can manually add the macro to the Quick Action Tool Bar but it
refuses to let me use a custom button face so it has a happy face or an
arrow. I see no way to add it to ribbon (for example to the add-ins tab)
without extensive XML coding. This coding is so difficult that Microsoft
provides a 'validation' tool that (like SQL) tells you if the code is good
or bad and little else. Otherwise, the only feedback you get is no response
when you try and evoke the XML code if it is not perfect. The 'example' of
how to code the XML is more than three pages of 10 point XML and assumes you
are already expert in XMP coding. I need what I had in 2003 where a user
would click on a button and the VBA code would install the macro and a
button.

In Outlook, things are even worse. It lets me manually paste the proper
face, but only on the old command bar that is on the screen with the in-box.
In a message (where I need it) there is only the ribbon and the XML problem.
More importantly, 2007 eliminates the HTML editor and replaces it with a
badly stripped subset of Word. It generates tons of garbage code using
Microsoft style sheets only available over the web. The normal thing is to
set it to strip out unnecessary code that does away with some unused
imbedded styles. [Please don't ask me why they imbed scores of styles when
using style sheets!] This also seems to strip out my </span> close span
statement and lose all the text until they use a span statement. I do not
yet see how to deal with that, even by unchecking the 'reduce size' box.

When I try and open my 2003 Install workbook, it simple deletes all of the
sheets. I have not even looked at PowerPoint yet.

Has anyone uncovered the secret of getting this sort of thing working with
Office 2007?
 
J

Jane Parker

Hi Patrick

Let's ignore what the macro does to start with and just look at deploying a
Macro with some very basic functionality. What is the best way to get a
Macro deployed to users in the same company with Office 2007?

John

Patrick Schmid said:
How can I help you get started with RibbonX?

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed

I have a series of Macros that goes through various Office documents and
automatically changes company trademark names to appear in the corporate
standard font and style. I am trying to get this working in Office 2007
and
having major problems.

I am becoming more and more frustrated with Office 2007. Microsoft seems
intent on eliminating VBA and forcing people to .NET only tools and
having
to buy (and learn) Visual Studio.

In Word I can manually add the macro to the Quick Action Tool Bar but it
refuses to let me use a custom button face so it has a happy face or an
arrow. I see no way to add it to ribbon (for example to the add-ins tab)
without extensive XML coding. This coding is so difficult that Microsoft
provides a 'validation' tool that (like SQL) tells you if the code is
good
or bad and little else. Otherwise, the only feedback you get is no
response
when you try and evoke the XML code if it is not perfect. The 'example'
of
how to code the XML is more than three pages of 10 point XML and assumes
you
are already expert in XMP coding. I need what I had in 2003 where a user
would click on a button and the VBA code would install the macro and a
button.

In Outlook, things are even worse. It lets me manually paste the proper
face, but only on the old command bar that is on the screen with the
in-box.
In a message (where I need it) there is only the ribbon and the XML
problem.
More importantly, 2007 eliminates the HTML editor and replaces it with a
badly stripped subset of Word. It generates tons of garbage code using
Microsoft style sheets only available over the web. The normal thing is
to
set it to strip out unnecessary code that does away with some unused
imbedded styles. [Please don't ask me why they imbed scores of styles
when
using style sheets!] This also seems to strip out my </span> close span
statement and lose all the text until they use a span statement. I do
not
yet see how to deal with that, even by unchecking the 'reduce size' box.

When I try and open my 2003 Install workbook, it simple deletes all of
the
sheets. I have not even looked at PowerPoint yet.

Has anyone uncovered the secret of getting this sort of thing working
with
Office 2007?
 
P

Patrick Schmid [MVP]

Same as in Office 2003. Nothing has changed in that area.
You could put the macro into a template and then store the template in a
folder that Word will read on startup. See Office button, Word Options,
Advanced, File Locations for the familiar 2003 dialog box specifying
those special Word locations.

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed

Hi Patrick

Let's ignore what the macro does to start with and just look at deploying a
Macro with some very basic functionality. What is the best way to get a
Macro deployed to users in the same company with Office 2007?

John

Patrick Schmid said:
How can I help you get started with RibbonX?

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed

I have a series of Macros that goes through various Office documents and
automatically changes company trademark names to appear in the corporate
standard font and style. I am trying to get this working in Office 2007
and
having major problems.

I am becoming more and more frustrated with Office 2007. Microsoft seems
intent on eliminating VBA and forcing people to .NET only tools and
having
to buy (and learn) Visual Studio.

In Word I can manually add the macro to the Quick Action Tool Bar but it
refuses to let me use a custom button face so it has a happy face or an
arrow. I see no way to add it to ribbon (for example to the add-ins tab)
without extensive XML coding. This coding is so difficult that Microsoft
provides a 'validation' tool that (like SQL) tells you if the code is
good
or bad and little else. Otherwise, the only feedback you get is no
response
when you try and evoke the XML code if it is not perfect. The 'example'
of
how to code the XML is more than three pages of 10 point XML and assumes
you
are already expert in XMP coding. I need what I had in 2003 where a user
would click on a button and the VBA code would install the macro and a
button.

In Outlook, things are even worse. It lets me manually paste the proper
face, but only on the old command bar that is on the screen with the
in-box.
In a message (where I need it) there is only the ribbon and the XML
problem.
More importantly, 2007 eliminates the HTML editor and replaces it with a
badly stripped subset of Word. It generates tons of garbage code using
Microsoft style sheets only available over the web. The normal thing is
to
set it to strip out unnecessary code that does away with some unused
imbedded styles. [Please don't ask me why they imbed scores of styles
when
using style sheets!] This also seems to strip out my </span> close span
statement and lose all the text until they use a span statement. I do
not
yet see how to deal with that, even by unchecking the 'reduce size' box.

When I try and open my 2003 Install workbook, it simple deletes all of
the
sheets. I have not even looked at PowerPoint yet.

Has anyone uncovered the secret of getting this sort of thing working
with
Office 2007?
 

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