Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Change language of textboxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Barber - 05 Jan 2005 11:53 GMT
I have a large document that is in English, it has within it drawings and
textboxes that were inserted by users whose language was set to French - How
can I change the language of all textboxes in a document?
John Doue - 05 Jan 2005 12:06 GMT
> I have a large document that is in English, it has within it drawings and
> textboxes that were inserted by users whose language was set to French - How
> can I change the language of all textboxes in a document?
The following macro works for me. I forget how I built it. It is
supposed to change into French both main text and boxes. Comments
appreciated.

Sub Francais()
'
' Francais Macro
' Macro recorded 04/06/02 by Jean-Paul Darcis
'
    Selection.WholeStory
    Selection.LanguageID = wdFrench

    Selection.HomeKey Unit:=wdStory
    Selection.Find.ClearFormatting
        With Selection.Find
        .Text = "^f"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute
    If Selection.Find.Found Then

        If ActiveWindow.ActivePane.View.Type = wdPageView Or
ActiveWindow. _
        ActivePane.View.Type = wdOnlineView Or
ActiveWindow.ActivePane.View.Type _
        = wdPrintPreview Then
        ActiveWindow.View.SeekView = wdSeekFootnotes
        Else
        ActiveWindow.View.SplitSpecial = wdPaneFootnotes
        End If

    Selection.WholeStory
    Selection.LanguageID = wdFrench

        If ActiveWindow.ActivePane.View.Type = wdPageView Or
ActiveWindow. _
        ActivePane.View.Type = wdOnlineView Or
ActiveWindow.ActivePane.View.Type _
        = wdPrintPreview Then
        ActiveWindow.View.SeekView = wdSeekMainDocument
        Else
        ActiveWindow.Panes(2).Close
        End If

   End If
End Sub

Signature

John Doue

Steve Barber - 06 Jan 2005 08:37 GMT
Thanks for that it seems to have worked
John Doue - 06 Jan 2005 09:35 GMT
> Thanks for that it seems to have worked

You are welcome.

Signature

John Doue

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.