Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2013, 11:04 AM
stresscalcs stresscalcs is offline Captions, self defined Windows XP Captions, self defined Office 2003
Novice
Captions, self defined
 
Join Date: Jan 2013
Posts: 9
stresscalcs is on a distinguished road
Default Captions, self defined

Word 2003, XP, + all updates



It is possible to define your own caption label text (insert -> reference -> caption -> new label).

These captions appear to be bound to the computer and/or user, not the document.

If you create a document with these own defined captions ....
1) somebody else logged onto the same computer who then opens the document will see the captions that have been created, but will not be able to create any additional captions using the same label.
2) similarly, somebody else or yourself using another computer who then opens the document will see the captions that have been created, but will not be able to create any additional captions using the same label.

Does anybody know how/where the own caption label information is stored by word, that would explain these situations?

Any help would be much appreciated.
Reply With Quote
  #2  
Old 01-20-2013, 11:51 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Captions, self defined Windows 7 64bit Captions, self defined Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,903
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Caption labels are stored in the Normal template. Unfortunately, this can't be changed. Instead, as you have noticed, we have to recreate the labels when the document is being opened on a new machine (or by a different user on the same machine).
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 01-20-2013, 12:02 PM
stresscalcs stresscalcs is offline Captions, self defined Windows XP Captions, self defined Office 2003
Novice
Captions, self defined
 
Join Date: Jan 2013
Posts: 9
stresscalcs is on a distinguished road
Default

Thanks for the input.

You obviously know a lot of worthwhile information judging by other posts.

Do you think there might be a chance of doing a "binary edit" on the normal template to move/transfer the captions?

It's something I would give a try.

Or is a simple transfer of the normal template a solution (with possible loss of previous settings)?
Reply With Quote
  #4  
Old 01-20-2013, 12:37 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Captions, self defined Windows 7 64bit Captions, self defined Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,903
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Sorry, I don't know if/how you can manipulate the documents directly. (XML might be a possibility, but I have never tried it.)

Adding a caption label could be done in an ordinary Word macro (Visual Basic for Applications), of course, if that helps. In the simplest case:

Code:
Application.CaptionLabels.Add "My caption label here"
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #5  
Old 01-29-2013, 02:13 PM
stresscalcs stresscalcs is offline Captions, self defined Windows XP Captions, self defined Office 2003
Novice
Captions, self defined
 
Join Date: Jan 2013
Posts: 9
stresscalcs is on a distinguished road
Default

Ok, I have made a number of tests. I took the Normal.dot file from a machine & specific user, where all the self created Captions can be seen and used in all word documents, onto another machine (renaming the Normal.dot to Normal_orig.dot). After a reboot and starting Word on the second machine, none of the Captions can be seen in any word document loaded, hence cannot be used. Interesting is that the Normal.dot file that was moved is much smaller in size than the Normal.dot file on a third machine where only 3 of the 15 self created Captions can be seen. Is it possible the Captions are not stored in the Normal.dot file as this suggests. Further, are there any other possibilities where the Captions are stored?
Reply With Quote
  #6  
Old 01-31-2013, 02:20 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Captions, self defined Windows 7 64bit Captions, self defined Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,903
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

I'm sure that the caption labels are stored in the Normal template. Creating a new label prompts me to save Normal.dotm (because I have that option set). I choose to save. Exiting and restarting Word, I see the new label in the Caption dialog box. And if I rename Normal.dotm and let Word create a new one, the added caption label has been lost.

When you moved Normal to the other computer, did you make sure to put it in the correct folder? It has to be in the User Templates folder, as indicated by Tools | Options | File Locations.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #7  
Old 01-31-2013, 08:17 AM
stresscalcs stresscalcs is offline Captions, self defined Windows XP Captions, self defined Office 2003
Novice
Captions, self defined
 
Join Date: Jan 2013
Posts: 9
stresscalcs is on a distinguished road
Default

Thanks for the response. The computers are in a network running a German Win XP. We placed the moved Normal.dot file where found the computer moved to original Normal.dot file. That seemed logical at the time. The comment you make about the Word option to ask about replacing Normal.dot could be important information. I will investigate. Thanks for the information.
Reply With Quote
  #8  
Old 01-31-2013, 12:35 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Captions, self defined Windows 7 64bit Captions, self defined Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,903
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Are you perhaps using some Office installation in English as well? The reason I ask is that there are also three built-in caption labels, whose names are different in different language versions of Word. This may be relevant to your situation (at least if you move files between, say, German and English Word).
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #9  
Old 02-01-2013, 09:29 AM
stresscalcs stresscalcs is offline Captions, self defined Windows XP Captions, self defined Office 2003
Novice
Captions, self defined
 
Join Date: Jan 2013
Posts: 9
stresscalcs is on a distinguished road
Default

Yes, the basic Word installation is German. Everybody who is under my guidance, must work in English. Every time they introduce a new user or a new machine arrives, I have to create captions for Figures (German -> Abbildung) and Tables (German -> Tabelle), but this is under control. We don't use Equation (German -> Gleichung). This is one of the many poor programming techniques of MS. I have seen a document written/formatted using an English Word read into a German Word which then destroyed all the cross referencing and captions. The culprit could not remember exactly what he did and I was unable to reproduce it. Simply wasted a day correcting the document. You have to accept that Microsoft does not understand that you might be wanting work in two (or more) languages, does not notice you have installed the language pack to make it talk to you in a different language from the operating system, and add captions accordingly. After many years experience, I recommend never mixing Windows OS with programs written & working in a different language. You might be lucky, if the programmer was good, but it can cause problems.
Reply With Quote
  #10  
Old 01-29-2015, 04:47 PM
aarwdc aarwdc is offline Captions, self defined Windows 8 Captions, self defined Office 2007
Novice
 
Join Date: Jan 2015
Posts: 1
aarwdc is on a distinguished road
Default Adding a new caption label in macro

Quote:
Originally Posted by Stefan Blom View Post

Adding a caption label could be done in an ordinary Word macro (Visual Basic for Applications), of course, if that helps. In the simplest case:

Code:
Application.CaptionLabels.Add "My caption label here"
A question on this code.
Could it be amended to add 'include chapter number' setting to that macro?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Captions, self defined VBA to insert captions without appending to existing captions Marrick13 Word VBA 17 03-21-2023 07:51 PM
Captions, self defined FileSystemObject Compile Error: User-Defined Type Not Defined gsrikanth Excel Programming 2 03-28-2022 06:32 AM
Captions, self defined Range.Information(wdStartOfRangeRowNumber): Application-defined or Object-defined err tinfanide Excel Programming 2 06-09-2012 10:19 AM
Captions, self defined Application-defined or Object-defined error Manit Excel Programming 4 12-08-2011 07:35 PM
Captions, self defined Defined Views in Tasks Inga Office 3 07-20-2005 07:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft