Previous in Forum: PLD Programming, EPM7064   Next in Forum: Dr. My Eyes..........
Close
Close
Close
13 comments
Rate Comments: Nested
Associate

Join Date: Jul 2008
Posts: 52

Open Image in Excel Program

02/20/2013 4:12 PM

Hello,

I have one problem with opening a jpg image with excel file using hyperlink.

I connect a jpg image with hyperlink in excel file and when I open this link it opens on different computers with different programs. On my computer it opens me in paint in others computers it opens me in windows photo gallery.

Is there a way to force excel to open my image in one program? I search the web but didn't find any good solution or if I found it, didn't work.

I am using Windows XP SP2, Excel 2010 and the old one Excel 97

Thanks people for your answers

Register to Reply
Pathfinder Tags: "excel"
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#1

Re: Open Image in Excel Program

02/20/2013 6:25 PM

Why would you want to do this? You would probably have to make it an exe file....

http://www.vbforums.com/showthread.php?498845-Make-exe-file-for-excel-vba-code

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply Score 1 for Good Answer
Guru

Join Date: Mar 2012
Location: Out of your mind! Not in sight!
Posts: 4424
Good Answers: 108
#2

Re: Open Image in Excel Program

02/20/2013 8:58 PM

Different computer do different things. It depends on the default set up of the computer. You will have to change that in order to get the same result on every computer. How you do this is the question and if you can, because it means you change system setting from within excel. This will be regarded a malicious action and is probably prohibited or not even possible.

Why not include the picture in the excel file?

__________________
Common Sense Dictates
Register to Reply Score 1 for Good Answer
Associate

Join Date: Jul 2008
Posts: 52
#4
In reply to #2

Re: Open Image in Excel Program

02/21/2013 1:22 PM

"Why not include the picture in the excel file?"

I can't put picture directly into excel file, because I have a table of 500 rows and if a person is interested to open a row 450, there is a hyperlink to open only that picture and I need to control that every person opens it in the same program.

Register to Reply
Active Contributor

Join Date: Aug 2013
Posts: 10
#12
In reply to #4

Re: Open Image in Excel Program

10/11/2013 11:50 PM

I think using a fine 3rd party Image SDK which allows you do batch processing to the images can make the process much more convenient. Don't you think so?

Register to Reply
Power-User

Join Date: Jul 2010
Location: North Carolina, USA
Posts: 423
Good Answers: 9
#3

Re: Open Image in Excel Program

02/21/2013 8:32 AM

Do you want the others you are sharing this excel file with to edit the image? There is no reason to open a .jpg in Paint unless the purpose is to edit. I expect most users have Windows Explorer set up to open image files in their favorite viewer like photo gallery as default. I think photo gallery is also the MS factory default. Right clicking the image file and selecting "open with" will get you to a dialogue box where you can change that default for the computer.

Changing a user's OS settings with a hyper link would, as posted by others, be considered malicious and making the link to an .exe would likely activate some computers' virus filters or cause emails with your file to be blocked. However, if you have a valid user account on those other computers then you should be able to change YOUR settings to what you want without causing other valid users headache.

If you need to use Paint, have you looked into making your link an excel macro that opens the application you want, then the file you want (Solareagle's post?)? I don't personally know how to do that, but it may be possible. That still could get this file blocked as an email attachment though, because of the unknown macro.

Register to Reply
Associate

Join Date: Jul 2008
Posts: 52
#5
In reply to #3

Re: Open Image in Excel Program

02/21/2013 1:25 PM

"right clicking the image file and selecting "open with" will get you to a dialogue box where you can change that default for the computer."

I try that but still doesn't work

Register to Reply
Associate

Join Date: Jul 2008
Posts: 52
#6

Re: Open Image in Excel Program

02/21/2013 1:35 PM

hmmm... maybe the best way is to create a macro, like solareagle suggest. The only problem is, because my knowledge stops here in writing vba code.

I need to learn that, but where are some books that are not with 500 pages, which don't get me wrong, they are good, but with my lack of timem they are a little inappropriate

Register to Reply
Guru

Join Date: Jul 2006
Location: Eastern Kansas USA
Posts: 1503
Good Answers: 128
#7

Re: Open Image in Excel Program

02/21/2013 2:35 PM

simke,

Ever since the days of the first personal computers, every file has an extension (.xxx or .xxxx) that describes to the operating system the type of file that created or is to open this file. This data is stored in a table of file associations buried somewhere in the computer (normally accessed in "My computer", but with different ways to get to it depending on the particular operating system). Many programs can open and read/edit a .jpg file. When one is downloaded or installed the installation program will (typically) suggest that this program become the "default" one to open that type of file (often this setting of default is ignored or missed). Your computer and the .xls file you have created cannot control the file associations in the user's computer. At best you can include an instruction with the program that tells the user that there are linked files with a .jpg type, so the user can take any needed steps to allow the .xls program to open them within the spreadsheet.

--JMM

Register to Reply
Associate

Join Date: Jul 2008
Posts: 52
#9
In reply to #7

Re: Open Image in Excel Program

02/21/2013 3:06 PM

jmueller,

Thank you for your reply.

I think I will use macro to open a external file, with a external program. I search the web and found the Shell function, which force the user to open a image in defined program and only take action in this workbook. I like that.

I agree that you can also open them within the spreadsheet. This is also a good way, but I will choose or try with the macro and then will see what happens

Thanks everyone for your comment

Register to Reply
Power-User

Join Date: Oct 2007
Location: S. California, USA
Posts: 279
Good Answers: 12
#8

Re: Open Image in Excel Program

02/21/2013 3:00 PM

Have your considered tricking the OS? What if you did the following:

1. Change the extension on your set of jpg image files so that they are unique. This would be an extension that is not likely to be used by any other application.

2. Instruct your users to add the association to they computer to the view the files with the unique extension in the application of your choice. (I suppose you could use an installer to perform this association.)

Implementing the above would require testing with each of the operating systems and versions of viewer which are to be supported. Or you could perhaps provide an open office viewer or share ware viewer and supply it with your excel & image files.

Register to Reply Score 1 for Good Answer
Guru

Join Date: Mar 2012
Location: Out of your mind! Not in sight!
Posts: 4424
Good Answers: 108
#10
In reply to #8

Re: Open Image in Excel Program

02/21/2013 6:56 PM

Excellent idea and out of the box thinking! I like it! GA for you there!

__________________
Common Sense Dictates
Register to Reply
Guru

Join Date: Jan 2007
Location: Edinburgh, Bonnie Scotland
Posts: 1335
Good Answers: 23
#11

Re: Open Image in Excel Program

02/24/2013 11:12 PM

I would embed the images on a separate sheet within the XL workbook, and link to the sheet (& box at the upper left of the location). Returning to where the person was in the spreadsheet is just a click on the original tab - linked box will still be highlighted.

This eliminates the risk of losing the link when the file structure is changed.

__________________
Madness is all in the mind
Register to Reply
Member

Join Date: Jan 2014
Posts: 5
#13

Re: Open Image in Excel Program

01/26/2014 1:44 AM

HI there

I am testing related program which supports users to open image in Excel files directly as requested.And i need a free trial or free program to have a try.It should involve a detailed tutorial.Thanks a lot

Register to Reply
Register to Reply 13 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

arronlee (1); GM1964 (1); IdeaSmith (2); jmueller (1); JRiversW (1); Nana111 (1); simke (4); Snave (1); SolarEagle (1)

Previous in Forum: PLD Programming, EPM7064   Next in Forum: Dr. My Eyes..........

Advertisement