• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Userform zoom özelliği

Katılım
16 Mayıs 2020
Mesajlar
327
Excel Vers. ve Dili
Office 365 Türkçe
Merhaba iyi akşamlar

Mesala dosyamızı masa üstü bilgisayarda büyük yaptık ama userfom büyük laptopda kullanacağız ekran küçük bunu için userform zoom ayarı varmış acaba nasıl oluyor bilgi alabilirmiyim
 
Sadece örnektir. Geliştirebilirsiniz.
C++:
Private Sub CommandButton1_Click()
    UserForm1.Width = UserForm1.Width * 1.1
    UserForm1.Width = UserForm1.Height * 1.1
    UserForm1.Zoom = UserForm1.Zoom * 1.1
    If UserForm1.Zoom > 400 Then UserForm1.Zoom = 400
End Sub

Private Sub CommandButton2_Click()
    UserForm1.Width = UserForm1.Width / 1.1
    UserForm1.Width = UserForm1.Height / 1.1
    UserForm1.Zoom = UserForm1.Zoom / 1.1
    If UserForm1.Zoom < 20 Then UserForm1.Zoom = 20
End Sub
 
Bu kodu bir test edin.
Kod:
Private Sub UserForm_Click()
UserForm1.Zoom = UserForm1.Zoom + 5
UserForm1.Height = UserForm1.Height + 7
UserForm1.Width = UserForm1.Width + 13.5
End Sub
 
Belki bu şekli daha kullanışlı olabilir.
C++:
Private Sub UserForm_Initialize()
With UserForm1
    .Zoom = CInt(Application.Width / 774 * 90)
    .Width = Application.Width
    .Height = Application.Height
End With
End Sub
 
Sadece örnektir. Geliştirebilirsiniz.
C++:
Private Sub CommandButton1_Click()
    UserForm1.Width = UserForm1.Width * 1.1
    UserForm1.Width = UserForm1.Height * 1.1
    UserForm1.Zoom = UserForm1.Zoom * 1.1
    If UserForm1.Zoom > 400 Then UserForm1.Zoom = 400
End Sub

Private Sub CommandButton2_Click()
    UserForm1.Width = UserForm1.Width / 1.1
    UserForm1.Width = UserForm1.Height / 1.1
    UserForm1.Zoom = UserForm1.Zoom / 1.1
    If UserForm1.Zoom < 20 Then UserForm1.Zoom = 20
End Sub
Çok teşekkür ederim
 
15 yıl öncesinden bir alternatif:


.
 
15 yıl öncesinden bir alternatif:


.
çok harikara olmuş sağolun haluk bey
 
Geri
Üst