+ Reply to Thread
Results 1 to 4 of 4

Images Gallery in UserForm

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2018
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    3

    Images Gallery in UserForm

    Hi All,

    i want to add images gallery in the userform below, so the user can browse the user guide images to know how to use the Dashboard
    using Next & Previous button to switch between them
    could you please give me VBA code for that Purpose or send to me Example Workbook sheet


    iuser.jpg



    Example for user Guide Images is below




    5.gif


    Thanks to you all in advance
    Last edited by controlz; 11-02-2018 at 02:36 AM.

  2. #2
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Images Gallery in UserForm

    Something like that?
    It is a zip with the excelfile and a folder with images. Unzip it first.
    Private Sub Cmd_00_Click()
    Unload Me 'close button
    End Sub
    Private Sub Spb_00_Change()
    L_04.Caption = Spb_00.Value 'L_04 is a label Spb_00 is a spinbutton
    Im_00.Picture = LoadPicture(ThisWorkbook.Path & "\Images\" & L_04.Caption & ".gif") 'Im_00 is a imagefield
    End Sub
    Private Sub UserForm_Initialize()
    L_04.Caption = 1
    End Sub
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    10-30-2018
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    3

    Re: Images Gallery in UserForm

    Dear Dotchiejack,

    First point thanks for your prompt reply, i think your method is require to keep images file always beside or with excel sheet, am i right sir ?

    second point, i found smart trick to do exactly what i want, let me share it with you

    i've created this numbers of Userforms and each one had same buttons (Next, Previous,Close)

    1.png

    then i used highlighted code below and modified it according to the number of userforms as below


    Private Sub CloseButton_Click()
        Unload Me
    End Sub
    
    Private Sub Image1_Click()
    
    End Sub
    
    Private Sub Label1_Click()
    
    End Sub
    
    Private Sub Label2_Click()
    
    End Sub
    
    Private Sub NextButton_Click()
    UserForm2.Hide
        UserForm3.Show
    End Sub
    
    Private Sub PreviousButton_Click()
    UserForm2.Hide
        UserForm1.Show
    End Sub
    
    Private Sub UserForm_Click()
    
    End Sub

    any way this my method and it's works with me magickly, let me know if your method is better than this one

    Note : this method not require any temp or saving pic on the PC




    Regards,
    Last edited by controlz; 11-03-2018 at 09:50 AM.

  4. #4
    Registered User
    Join Date
    10-08-2018
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    68

    Re: Images Gallery in UserForm

    Why not use Userform with Multipli Sides

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Background images for Userform.
    By Prabakaran3003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2016, 12:07 AM
  2. Uploading images via userform
    By ImageConfusion in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2015, 01:56 PM
  3. Populate Images on Userform Image
    By Naveed Raza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2014, 02:10 AM
  4. Images import to userform
    By tomlusc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2013, 06:48 AM
  5. Load Images from Userform/ Rebuild Userform
    By zimbo109 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-07-2013, 04:16 AM
  6. Userform Gallery
    By UserFormGallery in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2006, 07:20 AM
  7. [SOLVED] Cycle through images on UserForm
    By cdb in forum Excel General
    Replies: 2
    Last Post: 01-27-2005, 09:06 PM

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