+ Reply to Thread
Results 1 to 5 of 5

do while loop to change file names

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    do while loop to change file names

    Hi,

    I have a list of file names on column F that I want to change that on Col H using a do while or any kind of loop. File Name Changer is the control workbook and the rest are the ones i want changed.

    thx in advance to anyone who helps me.
    Attached Files Attached Files
    Last edited by kchm_2000; 10-22-2011 at 02:47 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: do while loop to change file names

    There's a limit to how big the errBUF can get, so hopefully it finds most of the files properly.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: do while loop to change file names

    thanks it works fine my only issue would what is the threshold? do you have anyclue how many files it can pick up?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: do while loop to change file names

    It's a character limit. If you suspect your environment is such that you will have a LOT of these, I'd suggest just marking the rows that fail. This version uses column I to note the failed files for you.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: do while loop to change file names

    thanks for your help it works great

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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