Command bars migrated over to 2007

K

Karl E. Peterson

Okay, so I had a custom command bar in normal.dot, which apparently got
migrated over to normal.dotm. Looks good. Doesn't work. :-(

When I press one of the buttons, I get a stupifying dialog that tells
me:

The macro cannot be found or has been disabled because of your Macro
security settings.

BS. The macro can easily be found if I punch the Macros button on the
Developer tab. And, when selected, it runs just just fine.

Is there anyway to get it working again, from the toolbar button?

Thanks... Karl
 
D

Doug Robbins - Word MVP

Hi Karl,

Are you seeing a Toolbar or do the buttons now appear in the Add-ins tab of
the ribbon. That is were buttons from toolbars in templates that are saved
in the Word Startup folder appear and all of those have worked for me. Try
putting a copy of the template (with a different name) in the Startup
folder.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
K

Karl E. Peterson

Doug said:
Are you seeing a Toolbar or do the buttons now appear in the Add-ins tab of
the ribbon.

Yeah, they're in the Add-ins tab, alright.
That is were buttons from toolbars in templates that are saved
in the Word Startup folder appear and all of those have worked for me. Try
putting a copy of the template (with a different name) in the Startup folder.

Ahhhh, okay, I just created a new DOT in 2003, and stuck it in the 2007
startup folder. And yes, that works!

Now, how do I get that remnant toolbar out of NORMAL.DOTM?

Thanks!
 
D

Doug Robbins - Word MVP

Hi Karl,

Right click on one of its buttons in the Add-ins tab and select Delete
Custom Toolbar.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
K

Karl E. Peterson

Doug said:
Right click on one of its buttons in the Add-ins tab and select Delete Custom
Toolbar.

Great! Got that.

One other oddity that arose when I moved the command bars into a DOT in
STARTUP. Now, whenever I close Word, I get this dialog:

You have modified styles, building blocks (such as cover pages or
headers), or other content that is stored in KarlsTools.dot. Do you
want to save changes to KarlsTools.dot?

Yes No Cancel

And of course, no matter how I answer that, the next time I close Word
I get the same prompt. Their is some code in the AutoExec that adds
button faces to the command bar:

Sub AutoExec()
CommandBars("Karl's Custom Tools").Controls(1).FaceId = 2083
CommandBars("Karl's Custom Tools").Controls(2).FaceId = 113
CommandBars("Karl's Custom Tools").Controls(3).FaceId = 114
End Sub

But that's it? Same code was also in the NORMAL.DOTM, but no prompt
there.

And, weirdly, I can no longer edit the code in the VBE. It tells me
the project is locked?
 
K

Karl E. Peterson

Karl said:
And, weirdly, I can no longer edit the code in the VBE. It tells me the
project is locked?

Okay, got around that by opening the DOT directly.
 
K

Karl E. Peterson

Anyone have a clue how to stop this persistent nag (below) when exiting
Word?
 
D

Doug Robbins - Word MVP

How about opening the template, running that code and then saving the
template and remove the code from the autoexec?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
K

Karl E. Peterson

Doug said:
How about opening the template, running that code and then saving the
template and remove the code from the autoexec?

Shazbot! That worked!

Dare I ask, how come in all the years of using that before, this one
never bit me before?

Thanks...
 
D

Doug Robbins - Word MVP

I have no idea, Karl. I had always thought that you were the Master and I
was just the Hacker.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
K

Karl E. Peterson

Doug said:
I have no idea, Karl. I had always thought that you were the Master and I
was just the Hacker.

LOL! We all have our talents. Office is a great mystery to me, at
times, even if I can get VB6 to do somersaults at other times. :)

And hey, there's no "just" before "the hacker"! ;-)
 

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