Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-16-2020, 06:32 AM
Panavia Panavia is offline Language of Table and Figure Captions Windows 10 Language of Table and Figure Captions Office 2016
Novice
Language of Table and Figure Captions
 
Join Date: Apr 2020
Posts: 2
Panavia is on a distinguished road
Default Language of Table and Figure Captions

Hey everyone,



the VBA Word API drives me nuts...
I'm importing content from a website into word and automatically assign Table Captions and Figure Captions to be summaries in List of Tables/Figures.

All this works fine with no problem. As of now I'm creating the captions with:
Code:
Selection.InsertCaption Label:=wdCaptionTable, Title:=Trim(innerTextString), Position:=wdCaptionPositionAbove
And the lists with:
Code:
ThisDocument.TablesOfFigures.Add Range:=Selection.Range, Caption:=wdCaptionFigure, IncludeLabel:=True, IncludePageNumbers:=True
The only issue I have is that the .dotm is used on machines with different language settings (for the OS as well as for Office). But I do want to always have the captions in English.

In order to ensure proper content language I set the following at different positions in the code:
Code:
ThisDocument.Content.LanguageID = wdEnglishUS
Now, for some weird reason the captions get displayed correctly in English as supposed, but several times they switch to the language the user has set globally (maybe in the standard template...?).

Does anyone know how to robustly set the language for the Table/Figure Captions to English, even if deployed on machines with different global language settings?

Thanks!
Your support is highly appreciated!
Tobias

Also posted under: Language of Table and Figure Captions
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Table captions changing to Figure captions and vice versa alicatsmom Word Tables 0 06-11-2019 08:51 AM
How to create multilevel figure/table captions fencingfoz Word 3 04-18-2019 05:07 PM
WORD is not descriminating between table and figure Captions twrey Word 0 01-01-2016 03:58 PM
Language of Table and Figure Captions Easily changing the position of figure and table captions Inge Pakulski Word 4 10-07-2015 05:24 AM
Broken Table/Figure Captions with Headings kokopelli_2001 Word 1 06-07-2013 04:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:29 PM.


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