+ Reply to Thread
Results 1 to 9 of 9

Show Picture in UserForm contained within Embedded Worksheet.

  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Question Show Picture in UserForm contained within Embedded Worksheet.

    Hi Everyone,

    After looking around on the forum I discovered some work done by Stephen Bullen that allows an image within a userform to be generated from an image embedded within a worksheet. The attached example works perfectly and when I play around with the attached I can change the image, set up etc. to show what I need and it all works fine.

    However when I try and recreate this from scratch I can only achieve a series of error messages (even if I copy and paste the code exactly the same). I think it has something to do with OLE Automation as referenced within the code, but I don’t know what this is?

    Can anyone help me understand why the attached workbook code can’t be copy and paste into another book and still work?

    Thanks for any help in advance.

    E
    Attached Files Attached Files

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    Hello Environment,

    See the attached WorkBook. I found no problem by adding more Pics!

    Also see the "Please consider" note at the bottom of this Post.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    if you copy the whole baspastepicture module you should have no problems using pastepicture in another workbook
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    02-07-2011
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    Hi Winon / JosephP,

    Thank you both for your help. I've had another go and still no luck. So I'm starting to think it’s my settings / version of excel rather than a general VBA problem.

    Thanks again
    E

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    unless you tell us what errors you are getting and where it's not really possible to help you ;-)

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    @ JosephP,

    Hello JP,

    I endorse your last post. We do need a more precise explanaition or example of the "problem" he has, which we don't seem to find.

  7. #7
    Registered User
    Join Date
    07-26-2013
    Location
    banagalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Post Re: Show Picture in UserForm contained within Embedded Worksheet.

    Hi

    can any one help me out to insert pictures in a cell by code using a userform with list of pictures

  8. #8
    Registered User
    Join Date
    07-26-2013
    Location
    banagalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    I have created a file were i need to insert a picture for different codes,

    example code 1 for picture 1

    in my data base sheet i select the code and picture should appear in the next cell were i give reference.

    The same action i wan to do it in different cells for all the cases i need to get same list and selected should appear in different cell.

    Like if i select in a1 the picture should appear in b1 if i select the code in a2 the picture appear in b2

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Show Picture in UserForm contained within Embedded Worksheet.

    welcome to the forum :-)

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster responses, too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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