Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro 1

Status
Not open for further replies.

GrimR

IS-IT--Management
Joined
Jun 17, 2007
Messages
1,149
Location
ZA
I have templates that staff run but I now have a machine that has changed the way it displays the templates the macro appears as {MACROBUTTON AcceptAllChangesInDoc} any idea what setting needs to be changed.

MCITP:EA/SA, MCSE, MCSA, MCDBA, MCTS, MCP+I, MCP
 
After 66 threads, you should really know that such a non-amount of info will not yield satisfactory responses.
What software? Version? What do you mean by "display the templates"?


[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
Office 2007 SP1. When the template is opened {MACROBUTTON AcceptAllChangesInDoc}is displayed instead of "Enter Recipient name and postal address" which if you open it on other machines displays correctly, this is throughout the template. This has recently happened to this machine as it was working correctly. I replaced the templates but I still get the same problem. Therefore I believe it must be a setting within office causing it.

MCITP:EA/SA, MCSE, MCSA, MCDBA, MCTS, MCP+I, MCP
 
That's still quite meagre info.
I assume it is Word?
I also assume you have assigned a button on the toolbar to the macro and that said string is displayed there instead of the button? Or is it displayed elsewhere? On the page? Messagebox?

1) Check your macro security settings
2) Have you migrated the templated from earlier Office versions to Office 2007, not taking into account that there are no longer toolbars but ribbons, perhaps?
3) "AcceptAllChangesInDoc" is quite different from "Enter Recipient name and postal address". Have you checked the macro code in VB Editor? Perhaps it is not an Office issue at all, but simply that you have accidentally overwritten your template with a different one?
[ponder]

[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
Another thing that just caught my eye:
"when the template is opened"... by double clicking it?
Is it a macro template or rather a sort of fillable form?

[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
ummm...try toggling field codes. Alt-F9.

Gerry
 
Although I have to agree with MakeItSo; it seems very odd that the procedure (the macro) is AcceptAllChangesInDoc, but you have the display text as "Enter Recipient name and postal address". These seem rather incongruous, at best.

I also wonder about "when the template is opened".

Template should NEVER be opened by users. Only the developer of the template should open it. Users should use the template. That is, use it to clone a new document. That is what templates are for.

In any case, if field codes are toggled visible, then generally this applies to the entire document, thus "this is throughout the template".

Although you can of course toggle a explicit field (like a MACROBUTTON) to show its code by right-clicking just that field.

Gerry
 
Thanks Gerry that was it, btw where in the menus would you find that setting.

MCITP:EA/SA, MCSE, MCSA, MCDBA, MCTS, MCP+I, MCP
 
It is not in the menus. Well, sort of not, but sort of yes it is.

Tools > Options > View, and under Show there is a checkbox for "Field codes".

The thing is, if you uncheck it (OK out of the dialog), and then press Alt-F9, you will still get the field codes being toggled.

Gerry
 
Thanks for the feedback, in Word 2007 its under Word Options -> Advanced -> Under the subsection Show document content -> Show field codes instead of their values.

MCITP:EA/SA, MCSE, MCSA, MCDBA, MCTS, MCP+I, MCP
 
Yes, well, thanks for posting the correct place for Word 2007. Perhaps that will also help you to make sure you mention version when you post. I am not being overly critical, it is just that it really helps us when people post versions.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top