+ Reply to Thread
Results 1 to 3 of 3

HOW CHECK FILE.NAME HAS EXISTS OR NOT IN FOLDER,if not exists then copy

  1. #1
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    HOW CHECK FILE.NAME HAS EXISTS OR NOT IN FOLDER,if not exists then copy

    I HAVE CODING LIKE this,using workbook open ,if file in folder has copy or file has exists ,for next time not to calculate or not copy again
    else if in folder contain new file ,every workbook_open new file in sheet1.usedrange copy to resume file sheets("REKAP")
    HOW TO do check up file exists or not exists
    i have coding ,every file in folder has copy ,i am save filename in sheets.rekap columns("O")
    how to do thank for attention
    Please Login or Register  to view this content.
    this other code but still can copy if has exists
    Please Login or Register  to view this content.
    Last edited by daboho; 10-12-2018 at 04:22 PM.
    "ThankyouFor Attention * And Your Help!!"

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: HOW CHECK FILE.NAME HAS EXISTS OR NOT IN FOLDER,if not exists then copy

    See next code and file attached

    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    Re: HOW CHECK FILE.NAME HAS EXISTS OR NOT IN FOLDER,if not exists then copy

    PCI problem is more complek any multiple path
    this is myfile
    folder DATA have many file ,name of file is 1.Diklat *.... ,2.diklat *...
    different name but name of file have unique "Diklat"
    for example in Folder "data" there are 2 file name
    1.diklat RKP
    2.diklat rst
    ----first run coding ,all file in folder "DATA" in every filename have sheets("REKAP") Copy to workbook.destination name "DATA GABUNGAN" in sheets("REKAP")
    In folder "GABUNGAN"
    then i am copy all path in folder "DATA" TO destination file "DATA GABUNGAN" Sheets("REKAP") columns(O)
    ---- second run coding (next time next week,or next day)
    - if in folder DATA file name
    1.diklat RKP
    2.diklat rst
    NOT TO COPY Because has copy in first run coding,
    and in file "DATA GABUNGAN" Sheets("REKAP") columns(O) is exists path or has copy

    - for next if in folder DATA add file example become 3 file
    1.diklat RKP
    2.diklat rst
    3.diklat New add
    while coding to run filename 3.diklat new add will to copy filename "DATA GABUNGAN" and (1.diklat RKP, 2.diklat rst) not to copy because has exist in columns(O) or has copy in first
    run coding
    I HOPE you understand my mind


    TRY USING my code in to myfile
    but can not different has copy or not
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by daboho; 10-13-2018 at 04:10 AM.

+ 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. Create Folder & Check if Folder Exists if Not Create Folder & then Save File
    By Quivolt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2017, 05:31 AM
  2. Check if file exists from same folder spreadsheet was opened
    By TimmerSuds in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2016, 04:37 AM
  3. Check if Folder exists
    By akq125 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2012, 10:35 PM
  4. Check if folder exists, if not create it
    By mattmac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2009, 10:17 AM
  5. Check if folder exists, if yes just copy sheet in to folder?
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2006, 10:44 AM
  6. How to check if a file exists in an ftp folder
    By LL Cool A in forum Excel General
    Replies: 3
    Last Post: 05-16-2006, 04:25 PM
  7. how to check if folder exists
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2005, 07:03 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