Application.Commandbars("testbar").Protection = msoBarNoMove
Jim, somehow I finagled, by using a MS window under mine, so the new .doc
and file windows parked under the menubars without the above program. Then
I happened to customize again... And now the doc windows don't stick
anymore. The program you gave above did indeed make custom bar not move, but
docs [and worse yet closing & error messages] still go under it (it's a 3-
line bar).
I'm not positive, but what you are describing concerning document windows
opening underneath your new toolbar arrangement may be simply normal
behavior. Documents remember the position of their windows based upon the
last time you saved the document. If you add a toolbar then open a
previously saved document, it will be underneath the toolbars. To fix this
simply reposition the document's window then save the document before you
close it. Next time it opens it should be where you left it.
I'm not experiencing the behavior of the windows you described 'should'
happen consistently with all doc windows. And, the part of my message "[and
worse yet closing & error messages (are appearing underneath the custom
toolbar, which is 3 lines deep)]" also shows a deeper problem with custom
toolbars.
First, whenever I start Word, the "Document1" window always appears
underneath my custom toolbar unless I park lines of standard toolbars
underneath my custom toolbar. Second, whenever I start a new doc, it will
open underneath my custom toolbar. Third, whenever I open a document first
created with Word docked to the toolbars, if I open them, move the window to
a new position, and resave them (using "save as" and replacing the original
doc), those windows always open underneath the custom toolbar.
That simply is a Word X coding error.
The custom toolbars simply don't have the same characteristics of docking as
the standard toolbars do. Period. No excuses, now from the boys back at
the farm, please.
You should be able to see your code in "Modules" folders using the Project
Explorer window within the visual basic editor (View > Project Explorer).
Sorry, but I'm a complete newbie to VBA, and even tho' I tried hard to save
the VBA file in the right place, I lost several of the files trying to make
the routine work. How can I find them in the finder window.
How is the default location set for these files?
Are they saved to the doc itself? Or available to all docs? Users?
Thanks again
Cheers, Alan