+ Reply to Thread
Results 1 to 10 of 10

Create hyperlink automatically by copy paste files path from computer

  1. #1
    Registered User
    Join Date
    04-24-2021
    Location
    Lisbon, Portugal
    MS-Off Ver
    Office365
    Posts
    5

    Post Create hyperlink automatically by copy paste files path from computer

    Hi, dear members

    Daily i have to fill several reports in Word and then in a excel file create an hyperlink for each one of the new reports.

    Basically my work flow is this

    1) Open word, make report, save in a folder for example: c:\reports\2023\report_345.docx
    2) Open excel file, go to cell i want, create hyperlink (navegate to folder, find file, accept)
    3) Repeat for all the reports i make on that day

    What i want:
    1) The same like above
    2) open excel file, click and drop the report in excel file, and automatically creates the hyperlink with the text report_345.docx

    Basically something i found on youtube video: Excel - Drag & Drop Hyperlinks (from user bdbd2012) - sorry can't post youtube links

    Is there any way to this easily?

    Thank you
    Last edited by AliGW; 06-20-2023 at 05:00 AM. Reason: SOLVED tag applied - no need to edit the thread title!

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Create hyperlink automatically by drag and drop file from computer

    An alternative mthod is to synchronize directory by using VBA after work every day.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-24-2021
    Location
    Lisbon, Portugal
    MS-Off Ver
    Office365
    Posts
    5

    Re: Create hyperlink automatically by drag and drop file from computer

    Thank you 😊 The problem is that i have the reports in several folders, but i find other way that i think works good for me, that would be to go each folder and use the command copy path of the files (from windows) and then i past in excel like this for example

    cell A1 = "D:\Users\ertas\Downloads\019333289.docx"
    cell A2 = "D:\Users\ertas\Downloads\019376.docx"
    cell A3 = "D:\Users\reports\2346.docx"

    and i would have a macro that i select the cells for example A1 to A3, and it would automatically convert them in hyperlink with the text:


    cell A1 = 019333289.docx
    cell A2 = 019376.docx
    cell A3 = 2346.docx

    then the macro would also change the cells from vertical to horizontal, like this:

    cell A1 = 019333289.docx
    cell B1 = 019376.docx
    cell C1 = 2346.docx

    Just have to learn now, how to do it with macro😅

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Create hyperlink automatically by drag and drop file from computer

    How about?
    1. select cells
    2. Alt-F8 run macro

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-24-2021
    Location
    Lisbon, Portugal
    MS-Off Ver
    Office365
    Posts
    5

    Re: Create hyperlink automatically by drag and drop file from computer

    Wow 😍😍😍 You're the best!!

    This is simply perfect! Completely solved my problem and saved me a lot of time! 😊

    I feel bad asking for one more thing, but maybe its not hard that would be to put also in the macro to rotate at the end the selected cells from rows into columns.
    transpose the select cells from columns into rows .

    For example, when i copy paste in excel the paths of the files from the folders, they are alligned in collumns like A1, A2, A3, etc...then i run the macro , hyperlinks are created and i would like then at the end the data to be A1, B1, C1, or whatever cells i selected before running the macro, for example, C21,C22,C23 to transform in C21, D21, EE21

    I found online an article about the command TRANSPOSE, maybe that is the right command...or if not possible i can always copy, and paste special and select transpote.

    In any case, you really helped me a lot, and i gained around 15 minutes per day just using this macro! Thank you so much, really! 😍

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Create hyperlink automatically by drag and drop file from computer

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-24-2021
    Location
    Lisbon, Portugal
    MS-Off Ver
    Office365
    Posts
    5

    Re: Create hyperlink automatically by drag and drop file from computer

    This one does rotates the selected cells from rows into columns and creates hyperlinks, but it shows the full path for example "D:\Users\ertas\Downloads\019333289.docx" instead of showing 019333289.docx shows "D:\Users\ertas\Downloads\019333289.docx"

    I'll just use the first one Thank you so much, i'm in debt to you 😊

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Create hyperlink automatically by drag and drop file from computer

    I did not notice

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-24-2021
    Location
    Lisbon, Portugal
    MS-Off Ver
    Office365
    Posts
    5

    Re: Create hyperlink automatically by drag and drop file from computer

    Solved it! Thank you so much 😍 I really really appreciate your help! 😊

  10. #10
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: [SOLVED] Create hyperlink automatically by copy paste files path from computer

    You are welcome.

+ 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. [SOLVED] automatically create hyperlink to file using file name in cell
    By nmanikrishnan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-21-2021, 05:49 AM
  2. Drag and drop outlook mail into a hyperlink in excel cell?
    By NickMulders in forum Excel General
    Replies: 0
    Last Post: 04-01-2016, 08:45 AM
  3. [SOLVED] Hyperlink Formula to Open PDF file on computer.
    By Jamber89 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-10-2015, 03:49 PM
  4. Replies: 0
    Last Post: 10-10-2011, 05:11 PM
  5. Replies: 1
    Last Post: 07-14-2007, 07:25 AM
  6. Replies: 0
    Last Post: 06-07-2006, 11:35 AM
  7. Replies: 2
    Last Post: 09-18-2005, 11:05 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