+ Reply to Thread
Results 1 to 1 of 1

help with me change Proofing language macro

  1. #1
    Registered User
    Join Date
    01-11-2016
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    13

    help with me change Proofing language macro

    Hi all,

    simply i got a code to change proofing language to all slides for my presentation from English to Arabic, but i found that there are some shapes and tables are excluded from macro and still English as it is

    the code is:

    Sub ChangeProofingLanguageToArabic()

    Dim j, k, m, scount, fcount, gcount As Integer
    scount = ActivePresentation.Slides.Count
    For j = 1 To scount
    fcount = ActivePresentation.Slides(j).Shapes.Count
    For k = 1 To fcount
    If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then
    ActivePresentation.Slides(j).Shapes(k) _
    .TextFrame.TextRange.LanguageID = msoLanguageIDArabic
    End If
    If ActivePresentation.Slides(j).Shapes(k).Type = msoGroup Then
    gcount = ActivePresentation.Slides(j).Shapes(k).GroupItems.Count
    For m = 1 To gcount
    If ActivePresentation.Slides(j).Shapes(k).GroupItems.Item(m).HasTextFrame Then
    ActivePresentation.Slides(j).Shapes(k).GroupItems.Item(m) _
    .TextFrame.TextRange.LanguageID = msoLanguageIDArabic
    End If
    Next m
    End If
    Next k
    Next j
    End Sub
    and i attached a sample pptx file that i'm working on, and this are the shapes i'm talking about on file

    ONE MORE THING, i want this code to exclude numbers and english words from being changed to arabic and stay as it is on english , with other words i need macro to apply arabic langaue to arabic words only

    1.png
    2.png
    3.png


    Cross posting link: http://www.vbaexpress.com/forum/show...397#post341397



    thanks in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change Language
    By Dummy99 in forum Excel General
    Replies: 4
    Last Post: 05-03-2016, 08:54 AM
  2. Change Button language according to Language Settings
    By Meithom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2015, 05:00 AM
  3. Use Macro to change language from the dropdown list
    By gideontky in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-09-2012, 09:15 AM
  4. [SOLVED] Error Proofing
    By Jasper in forum Excel General
    Replies: 1
    Last Post: 05-12-2005, 08:06 AM
  5. [SOLVED] How can I programatically change the language in the language bar?
    By Roy Barr in forum Excel General
    Replies: 0
    Last Post: 03-14-2005, 06:06 PM
  6. [SOLVED] How can I programatically change the language in the language bar?
    By Roy Barr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2005, 06:06 PM
  7. Replies: 2
    Last Post: 01-30-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1