+ Reply to Thread
Results 1 to 6 of 6

embed jpg on excel

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    37

    embed jpg on excel

    Hi all,

    I wanted to know it is possible to embed a jpg image on a excel file. The idea is, when a macro was executed use this jpg image on the sheet.
    I saw how use a jpg with a macro but you need to have this file on your computer and a specific route.

    What happened if i want to run this macro in other computer?

    Hope you can help me

    regards,

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: embed jpg on excel

    Embed the picture on the worksheet, and use code to toggle the picture visibility. See attachment for example (with apologies for the cheesy pic )
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    04-26-2013
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: embed jpg on excel

    Hi Olly , thats a good approach, but the macro that i have generates receipts of the company (1 sheet for each employee) with all the layout.
    To this layout i want to add the company logo. But i have the logo on my computer, but the person that will run the macro dont have this logo.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: embed jpg on excel

    You could embed the picture in a (hidden) sheet, then the macro can copy and paste the picture to a chosen destination:
    Please Login or Register  to view this content.
    Obviously, change the references to suit. Attachment has example.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-26-2013
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: embed jpg on excel

    haha thats! right! Sometimes you can see the easy solution!

    Thank you so much!

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: embed jpg on excel

    Glad you got your solution Happy to help, thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Embed file in Excel
    By milo1984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2014, 11:47 AM
  2. Embed IE in Excel
    By aftabn10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2010, 11:25 AM
  3. [SOLVED] Embed Word doc. into Excel
    By HotRod in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2006, 11:53 AM
  4. [SOLVED] Can I embed swf in excel?
    By Derrick in forum Excel General
    Replies: 0
    Last Post: 09-12-2005, 05:05 AM
  5. [SOLVED] How do I embed a PDF file within Excel
    By Eddy05 in forum Excel General
    Replies: 2
    Last Post: 01-28-2005, 03:23 AM

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