+ Reply to Thread
Results 1 to 7 of 7

Code for Word to Excel spreadsheet

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Code for Word to Excel spreadsheet

    Hi,

    I have recently just used this macro for my excel spreadsheet to pull data from all 50+ word document forms within my "Engineer Forms" folder.

    For some reason I am receiving a Error 53 : File not found message.

    It is pulling the data from one document in my folder but not the rest.

    Can someone please assist me on this???


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Code for Word to Excel spreadsheet

    hi birth19, the only suggestion is that other files have different file extension. The code processes .doc files but not .docx or .docm. So you may check folder contents regarding file extensions present. If to correct that in the code, you may change this:
    Please Login or Register  to view this content.
    to this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Code for Word to Excel spreadsheet

    Hi Watersev,

    Thanks for the quick response.

    I have tried both of these but I am still getting the error message, all documents are doc extension and the file it's pulling data from isn't even the first document. The only thing that stands out about this document is it is 39kb rather then 40kb that the others are but that can't be the factor.

  4. #4
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Code for Word to Excel spreadsheet

    does the folder Logged really exist in the same directory?
    if not it will produce file not found error

  5. #5
    Registered User
    Join Date
    12-20-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Code for Word to Excel spreadsheet

    Yes it is all in the same directory.

  6. #6
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Code for Word to Excel spreadsheet

    could you set a break point and see which line gives the error?

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Code for Word to Excel spreadsheet

    Please Login or Register  to view this content.

    or
    Please Login or Register  to view this content.
    Last edited by snb; 12-21-2011 at 11:34 AM.



+ 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