PDF image in userform

Solved
Hello,
can we integrate a PDF image into a VBA userform?
if so, how????
nic
Configuration: Windows 2000 Internet Explorer 6.0

7 answers

  • Votes
  • Date
  • Descending date
  1. Moderator
    Hello,
    To insert an image in pdf format in Microsoft Visual Basic ---> "Insert" and then select your "UserForm", the UserForm will appear, in the "toolbox", choose from "controls" --> "Images" and draw to the size you want for your pdf image in the UserForm. Then select the image in the "Picture" property.
    Have a nice day
    --

    "To find a solution to one’s problems, one must put in the effort."
    1. Hi
      thank you for your response but it's the first method I used:
      When I browse my folders with the "picture" property, none of my pdf files appear. They are not treated as images.

      ps for the site: "To find a solution to your problems, you have to put in the effort." is inappropriate.
  2. Moderator
    Hello,
    To display your files, you need to click on the menu and show files *.* and not just image files: jpeg, bmp ... so that your pdfs will be visible in your list and you can insert your pdf into the UserForm.
    Have a nice day

    PS: I think my quote is actually very well suited to the site because some are waiting for an answer from heaven without even providing a minimum of information or doing a minimum of research.
    --

    "To find a solution to one’s problems, one must put in the effort."
    1. HELLO
      I agree with Nic because I have the same problem.
      When I try to follow the mentioned procedure, I get the message "incorrect image."
  3. Moderator
    'Read,
    Perhaps it's due to the version of Excel? I have Excel 2003 and it works.
    --

    "To find a solution to one's problems, one must make the effort."
    1. Moderator
      I just tested with a new PDF image, but this time I chose a larger one, so my PDF file is also bigger, and indeed the method does not work :/
      I will therefore try with another control and keep you updated.
      See you later

      --

      "To find a solution to your problems, you have to make an effort."
      1. Moderator
        Hello,
        It is possible to display a PDF image in the UserForm without adding an image control, but by directly clicking on the "Picture" property of the UserForm.
        Have a nice day
        --

        "To find a solution to one's problems, one must make an effort."
        1. hi
          thanks for the info, but I think the problem comes from my version of Excel (2000) because I'm still getting an error message.
          I think I need to tinker with my pdf images to be able to import them in another format (wmf, jpg...).
          (or upgrade to Excel 2003!)
          see you later
        2. Hello
          the lecture was indeed interesting. I should be able to do something.
          thank you
          have a good day