+ Reply to Thread
Results 1 to 4 of 4

Macro to insert a photo

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Macro to insert a photo

    Ok guys, I have sorted out my issue with the insert of dates and time but have one that I am really having trouble with.

    Firstly the form will be run on a tablet so the less typing the user has to do in the field the better.

    I have a form that can be filled out with dropdown boxes and buttons to insert time and date for jobs we undertake. Once we have completed the job/ filled in the form I want a macro/button that allows the insertion of a picture that was taken by the tablet.

    I have set up merged cells K15 to Q35 where I would like to insert the photo. I need the macro once clicked to direct you to the folder in the tablet where the photos are located. Once the photo is selected it is then pasted into the merged cell and resizes itself to fit.

    If this is at all possible I would greatly appreciate any help.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to insert a photo

    This should to it, just edit the picPATH to the default directory to use for the picture selection, edit the GetOpenFilename to the correct filetype, this shows JPG:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Macro to insert a photo

    Thanks for the help worked great. I think it's time for me to start reading up on all the formulas

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to insert a photo

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ 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