+ Reply to Thread
Results 1 to 11 of 11

Copy hyperlink content to folder and add prefix name to the files

  1. #1
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Copy hyperlink content to folder and add prefix name to the files

    Hi Expert

    I need your help, from screenshot below Column A is the Prefix No and Column B is the file name ( hyperlink ),
    Can i have a vba script to download all the hyperlink contents to a folder and add a prefix id ( from Column A ) to the file name accordingly.
    Thanks.
    Screenshot 2020-01-11 at 12.01.46 PM.png

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Copy hyperlink content to folder and add prefix name to the files

    Hello,
    Where are these files located?

  3. #3
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Hi

    All files was located in C drive.
    C:\Uniqlo

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Copy hyperlink content to folder and add prefix name to the files

    Not sure what you are asking, you say,
    "download all the hyperlink contents to a folder and add a prefix id ( from Column A ) to the file name accordingly."

    Did you want to copy those files into a new folder and rename them?

  5. #5
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Yes, exactly .
    Copy all files to a new folder and add a prefix id infront of the actual name.

  6. #6
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Example like 02_20ss........... To C:\Temp

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Copy hyperlink content to folder and add prefix name to the files

    First we need to extract the folder name from the hyperlink, then rename it and copy it to the destination folder with the new name


    Change destination folder in the code to your folder name
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Thanks for great your help, i'll try and let you know.

  9. #9
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Hi davesexcel,

    Awesome.Your script its working.
    Can you do me a favour again.
    Base on the store name, collect all the files into individual folder ( store name ) with the quantity given ( copy multiplies of the file )
    Please remain last setting.
    Attached pix for your reference.
    Attachment 657487

  10. #10
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Hi davesexcel,

    One more thing, does vba working on MAC platform?
    Why must create new workbook to run the VBA script?
    If not the script just run once and not working anymore.
    Last edited by mikephie; 01-13-2020 at 04:07 AM.

  11. #11
    Registered User
    Join Date
    01-09-2020
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    25

    Re: Copy hyperlink content to folder and add prefix name to the files

    Hi davesexcel,

    Attached file for your action.
    Thanks.
    Attached Files Attached Files

+ 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. prefix folder name to files with excel vba
    By druva in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-25-2019, 01:47 PM
  2. [SOLVED] VBA code to add a prefix in all pdf files in a folder
    By UPA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2018, 01:53 AM
  3. Assign Hyperlink to cell if data matches files from a folder/sub folder
    By f_htn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2018, 04:03 PM
  4. [SOLVED] How to put Prefix in filenames on all files in folder with Modified Date
    By junmishima in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2013, 08:47 PM
  5. [SOLVED] VBA Code open files in folder, copy text to workbook-Next time folder opened copy only new
    By Bikeman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2013, 07:59 PM
  6. 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
  7. [SOLVED] Copy hyperlink content (.pdf) to a destination folder
    By McQuinge in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-23-2010, 09:12 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