+ Reply to Thread
Results 1 to 6 of 6

VBA for inserting an image into the comment box via user form

  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    Louisiana, United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Thumbs up VBA for inserting an image into the comment box via user form

    Admittedly, if this is even possible it is way beyond the scope of my understanding.

    Question - is it possible to allow a user to insert an image into a comment box through a user form.

    For example-

    User enters Part # into form - then in a separate form field - uploads an image from his/her hard drive.

    On submit the part number is populated into A1(or wherever) and comment box is also generated for A1 which contains said image.


    Is it possible? If not - why?

    Thanks.
    Last edited by antonymiller; 07-14-2009 at 01:12 PM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: VBA for inserting an image into the comment box via user form

    No it is not possible. Because it is not possible to insert an image into a comment box - that's the way it was built

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: VBA for inserting an image into the comment box via user form

    Yes, you may add an image to a cell comment. It may done manually by formatting the comment as follows:

    Format Comment > Colors & Lines > Fill | Color > Fill Effects > Picture

    See this link for helpful information. Develop your basic form and post back with your workbook and code for more help.

    http://www.ozgrid.com/forum/showthread.php?t=84793

  4. #4
    Registered User
    Join Date
    07-07-2009
    Location
    Louisiana, United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: VBA for inserting an image into the comment box via user form

    yeah I can do it manually - do it all the time. Just wondering if it was possible to do with vba.
    Last edited by antonymiller; 07-13-2009 at 10:00 PM.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBA for inserting an image into the comment box via user form

    You can add an image to a cell comment, manually or with VBA
    Please Login or Register  to view this content.
    To load an image into a userform see the Dtabase form example
    here

    http://www.excel-it.com/vba_examples.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    04-19-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA for inserting an image into the comment box via user form

    Is there a way to get this to locate the picture in a folder, then add it to the comment box, and then repeat down?

+ 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