+ Reply to Thread
Results 1 to 12 of 12

drag and drop files onto cells for hyperlinking?

  1. #1
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    drag and drop files onto cells for hyperlinking?

    Hi everybody,

    I've been told at work to do a very tedious task. I have a series of items (300) and I must hyperlink each of them to a file ( a jpg, a descriptive picture of the item) located in the company server. Having to go through the Excel right-click menu for attaching each of this 300 files is exhausting. And drag&dropping the file from the windows explorer onto a cell doesnt seem to work for this purpose...isn't there a way ( via Macro?) to implement a drag&drop solution?

    It's not so easy like writing a list of file-routes and associate it with my list of items, since I firstly must identify visually the item in the picture, and then link it with the file . Drag&drop is the best solution.

    I use Excel 2010.

    Thanks for your answers and suggestions in advance!
    Last edited by buhnen; 07-28-2011 at 04:20 PM.

  2. #2
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: drag and drop files onto cells for hyperlinking?

    I had the same task at work, here's what I did that may help you out..

    So I had to do this for about 2,000 line items... I uploaded all the files to a FTP server, lets call is www.mywebsite.com/pictures


    In my excel file in the first column was a Part Number which was like "23-5673" and luckily every picture I had was named exactly letter for letter after one of the 2,000 part numbers.

    So what I did was I used the Hyperlink function.

    For example, lets say I needed to make a hyperlink for the drawing "23-5673" Well that drawing is already uploaded to the FTP server as "23-5673.pdf" So in excel I had the follow.

    =HYPERLINK("http://mywebsite.com/pictures/"&C9&".pdf",C9)

    And in C9 was "23-5673"

    That way I could drag it down all 2,000 rows, and it made a hyperlink for everything.

    Good luck!

  3. #3
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: drag and drop files onto cells for hyperlinking?

    Hey Tommy,
    This is a great tip! :...) for a next time.
    Unfortunately, it can´t be applied to my particular case. The pictures I have can´t be renamed and each of them show several items ( parts of a machine ) which I must indentify individually (this means that most of times, several items of my excel list are are hyperlinked to the same picture)...
    But still, thanks for the tip. It will work in future

    Robert

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,747

    Re: drag and drop files onto cells for hyperlinking?

    A macro can add the hyperlink but it can't look at the picture

    If you can be more specific about what you would like the workflow to look like I can probably help with a macro. What does your Excel file look like? A list of part descriptions? Would it be helpful to click a button and get a list of jpg files that haven't been linked yet to choose from? Maybe a File Open dialog box where you can see thumbnails of the jpg's and select one?

    Can you describe how you would like this to work, and any limitations or constraints? I want to avoid a series of "Try this...", "No, because..." posts.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: drag and drop files onto cells for hyperlinking?

    Quote Originally Posted by 6StringJazzer View Post
    A macro can add the hyperlink but it can't look at the picture

    If you can be more specific about what you would like the workflow to look like I can probably help with a macro. What does your Excel file look like? A list of part descriptions? Would it be helpful to click a button and get a list of jpg files that haven't been linked yet to choose from? Maybe a File Open dialog box where you can see thumbnails of the jpg's and select one?

    Can you describe how you would like this to work, and any limitations or constraints? I want to avoid a series of "Try this...", "No, because..." posts.
    Thanks a lot for your interest StringJazzer. I´ll try to provide more specific information with the next example:

    I have 300 pictures stored within several folders in the company´s server. Each of those are named like IMG_23, IMG_24, IMG_25, ....( I´m not allowed to modify these tags nor the folders´ names)

    In each of those images, I have one or several items ( electronic components with its corresponding badge names)

    For example in picture IMG_23, I can see 3 of those components with its correspondent badge names (tags) like:

    -F112
    -Q26
    -H23

    Now let´s get back to my excel list. I must build a database over an excel book. I have 300 inputs in my list, this is, 300 hundred of those components. Example:
    ...
    -F112 | info A about this item | info B... | info C... | hyperlink to the jpg file in which this item appears| ....|...other cells|
    -Q26 | info A about this item | info B... | info C... | hyperlink to the jpg file in which this item appears| ....|...other cells|
    -H23 | info A about this item | info B... | info C... | hyperlink to the jpg file in which this item appears| ....|...other cells|
    ....

    So what do I have to do? I must look up every of those 300 items, let´s say for example, the item X112, across all the group of pictures files (to make this example easier, let say that the item appears only in a pictutre. In reality it may appear in several of them). And when I find it, I must create in the correspondent cell, the hyperlink to the jpg where I found it.

    I work with two computer screens, so this all would be a quicker task if in one screen I open a window with the folder where I have the jpg´s ( I set the view mode like "big icons" in windows 7, which is really helpful). On the other screen I have my excel list.
    What it would be a saving-time solution, is to drag the jpg file and drop it onto a cell, and while doing so, creating automatically the hyperlink...

    So, is this possible via Macros?
    Or if you have any other idea...

    Thanks again for your attention
    Last edited by buhnen; 07-23-2011 at 05:11 PM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,747

    Re: drag and drop files onto cells for hyperlinking?

    This file will build a catalog of images in a directory you choose. A link to the image plus a thumbnail of the image will be shown. You can bring this up side-by-side with your other workbook and drag & drop the hyperlinks.

    Go to Sheet2 for the buttons.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: drag and drop files onto cells for hyperlinking?

    Quote Originally Posted by 6StringJazzer View Post
    This file will build a catalog of images in a directory you choose. A link to the image plus a thumbnail of the image will be shown. You can bring this up side-by-side with your other workbook and drag & drop the hyperlinks.

    Go to Sheet2 for the buttons.
    Thanks a lot for your Macro 6StringJazzer. Unfortunately, when I press the Build Catalog button, an error shows up ( "the variable is not defined") . Could you also please make a little example of how is to work with it, for better understanding?
    Thanks again,
    Robert

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,747

    Re: drag and drop files onto cells for hyperlinking?

    Sorry, that was an error on my part. Try this.

    Press the Build Catalog button. You will be prompted to select a folder. Then the tool will put a file name in each row of column A and a scaled-down image from that file in column B. The image will be stored as the original resolution so you can drag it bigger if you want.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: drag and drop files onto cells for hyperlinking?

    Quote Originally Posted by 6StringJazzer View Post
    Sorry, that was an error on my part. Try this.

    Press the Build Catalog button. You will be prompted to select a folder. Then the tool will put a file name in each row of column A and a scaled-down image from that file in column B. The image will be stored as the original resolution so you can drag it bigger if you want.
    vow! this is really interesting! I think for the next project we will change our way to rename pictures to a most intuitive one and make use of this great excel macro!

    Thank you very much 6StringJazzer for a very well done work!

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,747

    Re: drag and drop files onto cells for hyperlinking?

    Just occurred to me, the macro assumes that everything in the folder is an image file, which of course may not be true. Let me know if you need any tweaks.

  11. #11
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: drag and drop files onto cells for hyperlinking?

    Quote Originally Posted by 6StringJazzer View Post
    Just occurred to me, the macro assumes that everything in the folder is an image file, which of course may not be true. Let me know if you need any tweaks.

    Hi again 6StringJazzer,

    I´ve thought of another possible variant to approach this issue, not for now, but for next time. The thing is, for certain reasons we will make a pdf, with the set of pictures (a picture for every page in the pdf). Then now, what we have to do is hyperlinking every pdf page, this is = every picture in the pdf. Is it a way to create these sort of links automatically via makro? Just like the makro you did, but this time linking to the pages numbers ?

    I´ve tried to find some info about how to do this but it seems like via the Hyperlink command, excel do not link directly to specific pages in the pdf.

    I´d really appreciate your help again.

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,747

    Re: drag and drop files onto cells for hyperlinking?

    You can hyperlink to a specific location in another Microsoft Office document (Word, Excel, PowerPoint) but I don't think it's possible to do that for a PDF file. If it is possible, I'm not the guy who can tell you, sorry!

+ 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