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

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

قام بنشر

السلام عليكم

جرب هكذا

Public Sub Ali_T()
Const S As String = "لا اله إلا الله محمد رسول الله"
ActiveSheet.Shapes.AddTextEffect(PresetTextEffect:=2, _
Text:=S, FontName:="Arial Black", FontSize:=36, FontBold:=False, FontItalic:=False, Left:=50, Top:=150).Select
With Selection.ShapeRange
     .ScaleHeight 1.23, False
     .ScaleWidth 1.6, False
     .Fill.Visible = True
     .Fill.Solid
     .Fill.ForeColor.SchemeColor = 22
     .Fill.Transparency = 0.5
     .Line.Weight = 1#
     .Line.DashStyle = 1
     .Line.Style = 1
     .Line.Transparency = 0#
     .Line.Visible = True
     .Line.ForeColor.SchemeColor = 22
     .Line.BackColor.RGB = RGB(255, 255, 255)
     .Height = 80
     .Width = 400
End With
End Sub

قام بنشر

جرب هذه الطريقة 

ادخل مسار الصورة بالكود كما بالشرح

' إسم الصورة وإمتدادها
Private Const Nm As String = "ddd.jpg"
Public Sub Ali_Pr()
Dim Pth As String
' هكذا مسار الصورة
'Pth = C:\Users\Public\Pictures\ddd.jpg
' مسار الصورة الحالي بنفس فولدر ملف الاكسل
Pth = ThisWorkbook.Path & Application.PathSeparator & "\" & Nm
    ActiveSheet.PageSetup.CenterHeaderPicture.Filename = Pth
    With ActiveSheet.PageSetup
        .LeftHeader = ""
        .CenterHeader = "&G"
        .RightHeader = ""
        .LeftFooter = ""
        .RightFooter = ""
        If .Orientation = xlPortrait Then
            .HeaderMargin = Application.InchesToPoints(3)
            ElseIf .Orientation = xlLandscape Then
            .HeaderMargin = Application.InchesToPoints(3.5)
        End If
    End With
End Sub

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

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

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

Important Information