+ Reply to Thread
Results 1 to 3 of 3

VB Code to move files if certain character is found

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to move files if certain character is found

    Hello:

    I have pdf files in Folder C:\01_ScannedFiles\
    I need VB code to search the name of the file which has "." within file name and if it finds then move that file into
    C:\02_ScannedFiles\

    Sample file names are as below

    05-27-2020-LJ-ApogeeSigns-ABC.pdf
    05-27-2020-WH-.CocaCola-Apr.pdf


    As you can see 2nd file has "." so that needs to be moved into C:\02_ScannedFiles\

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VB Code to move files if certain character is found

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to move files if certain character is found

    Hello AlphaFrog:

    Thanks a lot, works
    Riz

+ 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. VB Code to move files based on its name
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2020, 08:27 AM
  2. [SOLVED] delete the rest of the character after found character E
    By oeyandyprawira in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-06-2018, 12:11 AM
  3. VB Code to move the pdf files
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-15-2016, 08:25 PM
  4. [SOLVED] VB Code to Move Files
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-27-2015, 02:16 PM
  5. [SOLVED] Macro to rename cell content based on the starting character until found same character
    By oeyandyprawira in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-19-2015, 09:36 AM
  6. I am trying to adapt a code found on here for moving files.
    By zomrob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2013, 04:49 PM
  7. [SOLVED] Code needed to move cell value from one sheet to another if match is found.
    By SLIDE1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2012, 07:46 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