+ Reply to Thread
Results 1 to 7 of 7

RUN Time error,Rename PDF files using Excel Macro

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    31

    RUN Time error,Rename PDF files using Excel Macro

    Dear All,

    I am try to Rename Multiple PDF files with the Excel sheet Data.
    Column A -Contains ,Original PDF File Name
    Column B -Contains, to be Rename File Name
    My Pdf files were in the folder path-E:\test

    I took the Vb code from our fourm only.
    But when try to run the macro, it shows "Run time Error '53': "File Not Found.

    Please help to solve.

    Thanks In Advance.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by arlu1201; 11-06-2012 at 09:34 AM.

  2. #2
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: RUN Time error,Rename PDF files using Excel Macro

    The obvious and most likely explanation is a mismatch between the control sheet and the available file.
    If you can't find that insert debug.print statements to show the value for path and the result of dir(path) for comparison in the immediate window.

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

    Re: RUN Time error,Rename PDF files using Excel Macro

    Maybe:

    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!)

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: RUN Time error,Rename PDF files using Excel Macro

    Dear JB

    Thanks for your input.
    But it shows error as "Run-Time error '5",Invalid proceducre call or argument

    Please Help.

    Thanks in Advance.


    Regards.
    Prasanna
    Attached Files Attached Files

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

    Re: RUN Time error,Rename PDF files using Excel Macro

    Your fpath is already imbedded into both of the strings in columns A:B, so you don't need to parse it out.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-12-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: RUN Time error,Rename PDF files using Excel Macro

    Thanks Jb Its worked.

    thanks a lot.

    Regards

    Prasanna

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

    Re: RUN Time error,Rename PDF files using Excel Macro

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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