اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر (معدل)
Sub الماكرو_الرئيسي()


أعمدة

جدول_الضرب


End Sub


Sub جدول_الضرب()


Dim sumNomber As Integer

Dim i As Integer

Dim i2 As Integer

For i = 1 To 20

    For i2 = 1 To 10

        sumNomber = i * i2

        Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter

        Selection.BoldRun

        Selection.Font.SizeBi = 16

           Selection.Font.BoldBi = wdToggle

        Selection.TypeText Text:=i & " × " & i2 & " = " & sumNomber

        Selection.TypeParagraph

    Next

  

  Selection.TypeText Text:="-------------"

  Selection.TypeParagraph

    

Next

Selection.TypeText Text:="============"


End Sub


Sub أعمدة()


With ActiveDocument.PageSetup.TextColumns

        .SetCount NumColumns:=3

        .EvenlySpaced = True

        .LineBetween = True

        .Width = CentimetersToPoints(4.05)

        .Spacing = CentimetersToPoints(1.25)

        .FlowDirection = wdFlowRtl

End With


End Sub

تم تعديل بواسطه أحمد الحربي
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information