+ Reply to Thread
Results 1 to 8 of 8

Run-time Error 445: Object Doesn't Support This Action (File Search)

  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    Gold Coast, Australia
    MS-Off Ver
    2013
    Posts
    4

    Run-time Error 445: Object Doesn't Support This Action (File Search)

    Hello everyone,

    I searched the forums for this problem and only found a solution that was too dissimilar to help me. I know very little about coding so if anyone can help it would be appreciated.

    I use a hydrology program at work which is supplied for free by Wollongong University and is accepted by all local authorities in the areas that I do this work. Notepad is used to for the input files and is very cumbersome. They also provide an excel file which uses a macro to streamline the input process (about 10 times faster) however it was written for a much older version of excel when the code FileSearch worked. Because the program is free there is no support and no updated version of the macro. Can someone show me the correct alteration to the attached code, please?
    Attached Files Attached Files
    Last edited by Gerzim; 11-11-2014 at 08:32 PM. Reason: issue solved

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    The FileSearch part of the code just seems to be checking if a file exists, that can be done with Dir.

    So perhaps something like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-11-2014
    Location
    Gold Coast, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    Thank you Norie, I'll try it out

  4. #4
    Registered User
    Join Date
    11-11-2014
    Location
    Gold Coast, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    Thanks Norie, that worked but I am having the same problem with another macro in the same spreadsheet but with slightly different code. Do you think you could help me with the
    attached code?

    Thank you
    Attached Files Attached Files

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    I don't see why Application.FileSearch is being used there.

    Again the code seems to be checking if a file exists, though this time it's warning you if the file doesn't exist.

    That's what I think it's doing anyway, it kind of seems a bit over-complicated.

    Anyway, give this a try.
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    Hi Gerzim,

    Welcome to the forum!!

    Yes, Application.FileSearch was removed from Excel as part of its 2007 release.

    Here's my attempt at a work around:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  7. #7
    Registered User
    Join Date
    11-11-2014
    Location
    Gold Coast, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    Thanks guys, very much appreciated. It seems to be running now. Hopefully I'll get to be as proficient at this as you two.

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Run-time Error 445: Object Doesn't Support This Action (File Search)

    Thanks guys, very much appreciated. It seems to be running now.
    You're welcome. If you could mark the thread as solved it would be appreciated.

    Regards,

    Robert

+ 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. [SOLVED] Work around for Run-time Error 445: Object Doesn't Support This Action (File Search)
    By JPDutch in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-05-2013, 08:48 AM
  2. Run-time error '438': Object doesn't support this property or method
    By s3a in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-15-2012, 11:25 AM
  3. Run-time error '438' Object doesn't support this property or method
    By Lothar69 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2011, 03:30 PM
  4. Run-Time Error '438' - Object doesn't support this property or method
    By rajibyumnam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2011, 03:24 AM
  5. Run-time erro '445' : Object doesn't support this action
    By Aswathy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-03-2008, 05:32 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