+ Reply to Thread
Results 1 to 6 of 6

Creating hyperlinks in excel using drag and drop

  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    1

    Creating hyperlinks in excel using drag and drop

    I need a macro to drag and drop files into excel and create hyperlinks for them. For example, I have an invoice saved in a folder on my computer and I want to create a hyperlink to that invoice (pdf file) in excel by simply dragging and dropping the file from the folder into excel cell.
    For example, please see the following video: https://www.youtube.com/watch?v=GRpbcJEdPBQ
    I haven't had any luck finding the source code for this so any help will be appreciated. Thank you.
    Last edited by param.malkan; 09-18-2017 at 04:40 AM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Creating hyperlinks in excel using drag and drop

    welcome to the forum

    This does the same thing the other way round and is just as quick
    To test:
    - download attached workbook
    - open it
    - double click in any cell
    - browse to any file
    - select file
    - click on Open
    - hyperlink inserted in active cell

    (code currently defaults initial browsing to folder of active workbook - amend to preferred folder path)

    Place this code in SHEET module
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 09-18-2017 at 06:26 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    05-09-2020
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    3

    Re: Creating hyperlinks in excel using drag and drop

    Re: Creating hyperlinks in excel using drag and drop
    welcome to the forum

    This does the same thing the other way round and is just as quick
    To test:
    - download attached workbook
    - open it
    - double click in any cell
    - browse to any file
    - select file
    - click on Open
    - hyperlink inserted in active cell

    (code currently defaults initial browsing to folder of active workbook - amend to preferred folder path)

    Place this code in SHEET module

  4. #4
    Registered User
    Join Date
    05-09-2020
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    3

    Re: Creating hyperlinks in excel using drag and drop

    Thank you so much for the answer it really helped me.
    How can I modify the vba code to display the file name and not the entire path?

  5. #5
    Registered User
    Join Date
    05-09-2020
    Location
    Bucharest
    MS-Off Ver
    2016
    Posts
    3

    Re: Creating hyperlinks in excel using drag and drop

    And also I whant to limit the posibility to insert hyperlinks to a specific range("A1:A100")

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,040

    Re: Creating hyperlinks in excel using drag and drop

    Administrative Note:

    Hello constantinionalex and Welcome to Excel Forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Drag&drop outlook email to drop zone in excel
    By mpx300 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2015, 05:00 PM
  2. Replies: 11
    Last Post: 12-18-2014, 04:51 PM
  3. Replies: 1
    Last Post: 08-27-2012, 04:14 AM
  4. Drag and drop hyperlinks?
    By jcoleck in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-22-2011, 01:12 PM
  5. Drag and drop hyperlinks
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2011, 07:10 PM
  6. Excel drag & drop
    By daniel123 in forum Excel General
    Replies: 5
    Last Post: 11-10-2009, 05:43 PM
  7. Drag Drop in Excel
    By rahul.singh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 12:35 PM

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