Pull Up Photos Dynamically on a Userform - Great For Employee or Product Maintenance Form

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 36

  • @excelisfun
    @excelisfun 10 ปีที่แล้ว +2

    Thanks for the video! Such magic with VBA!

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Thanks, ExcelIsFun. Yes Excel sure is magical. Thanks for showing us all that.

  • @sollapalooza
    @sollapalooza 8 ปีที่แล้ว +3

    Can the photos be saved in one of the worksheet instead of using the location from computer?

  • @lunfaitang1459
    @lunfaitang1459 10 ปีที่แล้ว

    Awesome!!! VBA is great and fun!
    I wonder if we may use type function instead of clicking from drop down list to show the same result? Since practically speaking if we have more data it would be convenient to type 001 (Let's say employee I.D.) instead.
    Thanks!!!

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      yes, with a combobox, you do just that! You can type OR select with mouse. It's fun!

  • @krn14242
    @krn14242 10 ปีที่แล้ว

    Thanks Dan. Great idea. Wonder if you could use this to choose charts? Create a chart on a hidden tab, copy and paste as picture somewhere, then refer to it like you explained. You think?

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว +1

      Let's look into it, krn14242. Nothing's impossible, only certain things are difficult or may take time to create. :)

    • @krn14242
      @krn14242 10 ปีที่แล้ว

      Did it. Works just like your video explains except I copied and pasted charts as pictures.

  • @BS2Dos
    @BS2Dos 7 ปีที่แล้ว

    Good stuff. Is there any way to configure the user form so that in addition to images, each click of the box would also pull an object like a pdf file?

  • @danaaron5883
    @danaaron5883 2 ปีที่แล้ว

    Is there a way to add the images to clipboard (copy) so that I may paste them onto another document?

  • @cinanu
    @cinanu 10 ปีที่แล้ว

    Just wondering if we could do a word file instead of image ???

  • @lorencbellovoda568
    @lorencbellovoda568 5 ปีที่แล้ว

    Thanks. How it works when picture is related to two criteria not only one. For being more clear, there are different pictures that have the first criteria the same and the second different. let say the same PIN but different Description within the context of your video.

  • @Unknown-rv9eu
    @Unknown-rv9eu 10 ปีที่แล้ว

    Hello Dan , learning so much from your videos!!! I have a question. I am trying to load a pdf file of an application database into a control acropdf1.
    here is my code but it does not work.
    Private Sub cmbapp_Change()
    On Error Resume Next
    Dim mypdf As String
    mypdf = Me.cmbapp.List(Me.cmbapp.ListIndex, 2)
    Me.AcroPDF1.LoadFile (mypdf)
    End Sub
    I was hoping you could shed some light on what i am doing wrong.

  • @paolomorpurgo3757
    @paolomorpurgo3757 4 ปีที่แล้ว

    Grazie, funziona bene

  • @yusufsmile9770
    @yusufsmile9770 9 ปีที่แล้ว

    thanks for this video....good lesson...

  • @fauza4679
    @fauza4679 4 ปีที่แล้ว

    How to do if next n previous image ?.

  • @prasadraoylnv8791
    @prasadraoylnv8791 5 ปีที่แล้ว

    Sir, how to display family tree with photos on userform in excel vba...

  • @shakirkhilji1405
    @shakirkhilji1405 5 ปีที่แล้ว

    thanks. Sir,

  • @arielzabatecuizon5147
    @arielzabatecuizon5147 3 ปีที่แล้ว

    Sir please help, I have my image/picture inside my excel sheet. How to display it on userform? pls help. thanks.

  • @constructioncost
    @constructioncost 3 ปีที่แล้ว

    hello sir can you reverse the method..now pic from the user form to spread sheet pls

  • @michaelavelar7052
    @michaelavelar7052 5 ปีที่แล้ว

    Are you available to answer questions?

  • @scottmarshburn5143
    @scottmarshburn5143 10 ปีที่แล้ว

    Can something similar be done with videos. I have some training videos that I want the user to access through a combo box in a form. When they clicked on the file name then it would start the video.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Probably, there may be an additional activex control somewhere one can pop into the userform after activating or installing.

    • @scottmarshburn5143
      @scottmarshburn5143 10 ปีที่แล้ว

      I got it to work. I put Hyperlinks in the named range for each video then used this code in the combo box click event
      Private Sub ComboBox1_Click()
      Dim Sht1 As Worksheet
      Set Sht1 = ThisWorkbook.Sheets("Sheet1")
      Sht1.Cells.Find(ComboBox1.Value).Hyperlinks(1).Follow
      End Sub
      ExcelVbaIsFun

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Great job, Scott!

  • @umairanwar1634
    @umairanwar1634 3 ปีที่แล้ว

    @excelvbalsfun i am working on my educational project and looking for the same thing to show photos depending on combobox drop down. i repeat the same procedure many time but failed to run the macro. the code i get is variable is not defined. as in your example, you have assume/assign a code as "myImg" what ever i put , i get the error the variable is not defind. please guide to do the necessary thing at the earliest. thank you in advance.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  3 ปีที่แล้ว

      Hi Umair,
      Please remove Option Explicit from the top of your module in order to not have to declare every variable.
      Thanks
      Dan

  • @yusufsmile9770
    @yusufsmile9770 9 ปีที่แล้ว

    how if i want to preview a pdf file on my user form ?

  • @LanceYeun
    @LanceYeun 7 ปีที่แล้ว

    I've tried this and it works great for absolute paths, but I'd like to set up a hyperlink base and just have the file name under the image column. so in document properties i set the hyperlink base to C:\Images\ then in the cell i type image001.jpg. I've tried this out, but it keeps popping up an error saying the file can't be found even though i KNOW the files are there and i've pointed it to the right location. What am i missing?

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  7 ปีที่แล้ว

      +Lance Yeun can we see your code? When you debug through, is there possibly an extra or a missing backslash, such as C:\imagesmypic.jpg or C:\images\\mypic.jpg ?
      Also make sure you use a \ and not a /. Hmm other than that I'd need to see the code I think.
      Thanks
      Dan

  • @fundidor64
    @fundidor64 9 ปีที่แล้ว

    the file doesnt work, it doesn´t have the Vba code. but thanks any way

  • @antoniocano5956
    @antoniocano5956 2 ปีที่แล้ว

    I only can see first column!! why?

    • @saffetaltun833
      @saffetaltun833 2 ปีที่แล้ว

      Resim üzerinde iken sağ klik ile açılan pencerede en altta yer alan "Özellikler" tıklayınız. Güvenlik sekmesini tıklayınız, hemen altında "Nesne Adı" karşısındaki resim adresini kopyalayıp excel'e yapıştırınız. Bu şekilde yaptınız mı? Teşekkürler.

  • @peyko6970
    @peyko6970 10 ปีที่แล้ว

    Hi again,
    i have a new question for you that i really want to have some light on, because i have been trying to fix this issue for ages and i have yet to find a work-around :/
    Sometimes, happens randomly it seems, i get the error: "Invalid picture", when i am trying to show a "chart" from excel on my userform. I am doing this by saving the chart to my workbook location and then exporting it onto my userform.
    It have worked for sometime, but suddenly it gives me "invalid picture" and i dont know what to do :/
    Sincerely,
    Peyko.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Can you send me what you've got so far to Excelvbaisfun@gmail.com and I'll have a look, Peyko? Thanks! Dan