+ Reply to Thread
Results 1 to 2 of 2

How to add zoom option on a picture displayed on User form

Hybrid View

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to add zoom option on a picture displayed on User form

    How to add zoom option on a picture displayed on User form

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: How to add zoom option on a picture displayed on User form

    Place your Picture in an "Image" control on your Userform.
    Then use the code below:-
    Adjust the "Top", "Left" and "Zoom" properties to suit.
    Private Sub UserForm_Click()
    With Me
           .Zoom = IIf(.Zoom = 150, 100, 150)
        With .Image1
               .Top = IIf(.Top = 5, 30, 5)
                .Left = IIf(.Left = 5, 30, 5)
        End With
    End With
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1