+ Reply to Thread
Results 1 to 20 of 20

Auto link from excel to folder's files

  1. #1
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Auto link from excel to folder's files

    Dear all
    i am seeking some help regarding
    how to generate link automatically in excel to files in a specific folder once you add the file to the folder or even when i click a button to check the new files in the folder
    Last edited by AliGW; 10-31-2020 at 11:25 AM. Reason: Redacted for legibility.

  2. #2
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    thank you so much
    is there any way to make it insert the folder too?

    and my main question is are there any way to add the file to the sheet automatically without running the macro, and it happened once I open the file that contains the macro ??
    (make the macro work automatically by opening the file and go to a specific folder determined in it and list all folders in columns with their files )

    again THANK YOU SO MUCH , IT IS REALLY HELPFULL CODE
    Last edited by AliGW; 10-31-2020 at 11:26 AM. Reason: Redacted for legibility.

  4. #4
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    add below to ThisWorkbook module- excel file needs to be saved as Macro-Enabled Worksheet (.xlsm)

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    yes it works, thank you so much,,

    is there any way to catch the folder names too?

  6. #6
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    Yes but I don’t have access to my pc right now
    Will do it tomorrow

  7. #7
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    thank you so much

  8. #8
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    Try this
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    thank you,, very good it works perfectly
    is there any way to make any different sign like( font color, bold font ) for the folder names?

  10. #10
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    right now folder path is separated from the rest with empty row but yes you can have that too
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    amazing as usual

  12. #12
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    Dear AC PORTA VIA
    can add the "modified date" of the files in another column beside the column of the names of the files??
    this will help to sort the file according to modified date.
    kind regards,,

  13. #13
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    Try this
    Please Login or Register  to view this content.
    Last edited by AC PORTA VIA; 11-03-2020 at 09:49 PM.

  14. #14
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    Dear AC PORTA VIA
    IT WORKS , but for sorry it lists the modified date in another sheet, not in the same sheet

    regards,,

  15. #15
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    It creates new sheet named “ Files” to prevent overwriting anything in active sheet
    Everything you need should be on the same sheet-
    Name DateLastModified DateCreated DateLastAccessed

  16. #16
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    thanks ,,
    what i got is file names in a sheet and all other dates in another sheet, so does at what macro do?

  17. #17
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    Macro runs fine when I ran it
    All info with file name hyperlink and modified date are on the same sheet named Files
    There is something in your workbook that switch between sheet name Files and some other sheet in the middle of running macro
    Do you have any other macro in your workbook?

  18. #18
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    Use macro below - just remainder anything in active sheet in the first 4 columns ( A-D) will be deleted before new data is added
    Please Login or Register  to view this content.
    Last edited by AC PORTA VIA; 11-06-2020 at 09:45 AM.

  19. #19
    Registered User
    Join Date
    09-30-2017
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    16

    Re: Auto link from excel to folder's files

    perfect as usual, but there are extra "xPath" in the code, but when I remove it, it works fantastic
    I really appreciated it

  20. #20
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Auto link from excel to folder's files

    You are welcome
    Glad it works for you

+ 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. Replies: 1
    Last Post: 05-17-2018, 01:47 PM
  2. Replies: 3
    Last Post: 01-29-2018, 11:34 AM
  3. VBA to Auto Zip the Folder or Files
    By mvinay in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-28-2014, 05:20 AM
  4. Replies: 1
    Last Post: 09-22-2010, 11:00 AM
  5. Create automatic link to files in same folder.
    By Little Master in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-26-2009, 11:45 AM
  6. auto open excel files in the folder
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2009, 02:19 AM
  7. auto open the excel files in the folder
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2008, 04:16 AM

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