شكرا جزيلا
في عندك شي ناقص من مكتبة الاكواد
عادي ممكن تستغني عنه
Private Sub UserForm_Initialize()
Dim Zo%
Dim ZH#, ZW#, AL#, AT#, AH#, AW#
Dim FH!, FW!
''''''''''''''''''''''
AH = Application.Height: AW = Application.Width
AL = Application.Left: AT = Application.Top
FH = Height: FW = Width
ZH = AH - FH: ZW = AW - FW: Zo = Zoom
If ZH < ZW Then Zo = Zo * (AH / FH) Else If ZW < ZH Then Zo = Zo * (AW / FW)
''''''''''''''''''''''
Move AL, AT, AW, AH
If Zo <> 100 Then Zoom = Zo
End Sub
تحياتي