+ Reply to Thread
Results 1 to 9 of 9

Hyperlink all folder inside the main folder

  1. #1
    Registered User
    Join Date
    02-01-2017
    Location
    DOHA QATAR
    MS-Off Ver
    2013
    Posts
    26

    Hyperlink all folder inside the main folder

    Hi can someone help me I'm newbie here I want to make a vba code that will hyperlink only folder I have more than a thousand folder inside the main folder I want to hyperlink it all except all the extension like .pdf .exe etc.. inside the folder thanks in advance

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,877

    Re: Hyperlink all folder inside the main folder

    Something like below (assuming Windows machine).
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-01-2017
    Location
    DOHA QATAR
    MS-Off Ver
    2013
    Posts
    26

    Re: Hyperlink all folder inside the main folder

    thanks a lot its working but I want if you choose a directory and you choose the folder that time it will hyperlink thanks again

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,877

    Re: Hyperlink all folder inside the main folder

    ... I want if you choose a directory and you choose the folder that time it will hyperlink thanks again
    Not sure what you mean. Can you elaborate?

  5. #5
    Registered User
    Join Date
    02-01-2017
    Location
    DOHA QATAR
    MS-Off Ver
    2013
    Posts
    26

    Re: Hyperlink all folder inside the main folder

    when you run the code it will pop up the directory and you will choose which drive you will use (ex. C:, D:, network drive: etc.. ) after that when you choose the drive, the folder in it will automatically hyperlink. thanks again for your help I appreciate it.

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,877

    Re: Hyperlink all folder inside the main folder

    Something like below.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-01-2017
    Location
    DOHA QATAR
    MS-Off Ver
    2013
    Posts
    26

    Re: Hyperlink all folder inside the main folder

    thank you very much your the star :D

  8. #8
    Registered User
    Join Date
    02-01-2017
    Location
    DOHA QATAR
    MS-Off Ver
    2013
    Posts
    26

    Re: Hyperlink all folder inside the main folder

    Hi mate the code that you make had a run-time error 1004 application - defined or object-defined error in excel 2016

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,877

    Re: Hyperlink all folder inside the main folder

    Can you tell me which line is highlighted when you go into debug mode?

    It runs without issue on my machine (Excel 2010 & 2016 on Windows 7, Excel 2013 on Windows 10).

    Also, if using "C:\" you may need admin rights. Try changing it to folder of your choice.

+ 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. Hyperlink to a folder in the same folder as the spreadsheet
    By staunts in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2014, 04:52 AM
  2. Sum excel files in one folder to a main document outside of the folder
    By patel.1557 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2014, 08:27 AM
  3. Copy Folder Name to Cell with hyperlink to the folder
    By roy__lam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2013, 11:29 AM
  4. [SOLVED] VBA: Go Back A Folder and Get The Main Folder Name
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2013, 02:24 AM
  5. Improvement - Option To Nest Folders as Sub Folder Under a Main Folder / Heading
    By :) Sixthsense :) in forum Suggestions for Improvement
    Replies: 4
    Last Post: 01-28-2013, 07:09 AM
  6. Replies: 0
    Last Post: 10-10-2012, 03:51 AM
  7. Hyperlink files from folder or sub-folder for the whole workbook
    By Yani.Mio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2012, 05:38 PM

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