Consulting

Results 1 to 1 of 1

Thread: help with me change Proofing language macro

  1. #1

    Unhappy 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

    1.jpg2.png3.png



    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


    thanks in advance
    Attached Files Attached Files

Posting Permissions

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