+ Reply to Thread
Results 1 to 8 of 8

Find Function VBA Named Argument Not Found

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    Kuala Lumpur
    MS-Off Ver
    MS Office 2019
    Posts
    28

    Find Function VBA Named Argument Not Found

    I am writing a macro that runs through a word document and highlight all the values that is contained in my cell range in Excel. I have used the find function which works fine until I add the argument IgnoreSpace:= True, which I don't understand why it's resulting in error. Appreciate any help


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by elyas91; 03-16-2024 at 08:51 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Find Function VBA Named Argument Not Found

    I cannot find any valid way to use Range.Find in Excel the way you are using it. I am surprised it worked before you added IgnoreSpace. When I try either way I get errors.

    In Excel Range.Find is a method. You are using it as though it were an object with its own methods and properties. This usage is how Range.Find is used in Word, not Excel. Can you clarify what you are doing?

    It would be helpful if you could attach an Excel file that shows the way your code was without IgnoreSpace where it worked so we can run it and see what's going on.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Find Function VBA Named Argument Not Found

    @elyas91: please read forum rules and do not forget to add information about cross post.

    https://www.mrexcel.com/board/thread.../#post-6166006
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    08-18-2020
    Location
    Kuala Lumpur
    MS-Off Ver
    MS Office 2019
    Posts
    28

    Re: Find Function VBA Named Argument Not Found

    Hi!

    Sure, please find attached workbook, and open any wSample Workbook.xlsm word document,

  5. #5
    Registered User
    Join Date
    08-18-2020
    Location
    Kuala Lumpur
    MS-Off Ver
    MS Office 2019
    Posts
    28

    Re: Find Function VBA Named Argument Not Found

    Hi, I have also included the attachment on the question

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Find Function VBA Named Argument Not Found

    Quote Originally Posted by KOKOSEK View Post
    @elyas91: please read forum rules and do not forget to add information about cross post.

    https://www.mrexcel.com/board/thread.../#post-6166006
    I appreciate your effort but please reports posts rather than attempting to moderate them yourself.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Find Function VBA Named Argument Not Found

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. In the thread linked above, you seem to refer (in post #6) to a third place where a solution was posted. Please provide links to all sites where you have posted this question.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Find Function VBA Named Argument Not Found

    To all: A solution has been posted in the cross-posted thread linked by KOKOSEK.

+ 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] compile error in named argument not found.
    By fairyme in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2023, 01:33 AM
  2. Named Argument Not Found
    By seanhee in forum Excel General
    Replies: 3
    Last Post: 07-08-2017, 09:06 PM
  3. Named Argument Not Found for .FindNext within Function
    By alacey425 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2016, 01:02 PM
  4. [SOLVED] Named argument not found error
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2012, 07:09 AM
  5. [SOLVED] Named argument not found??
    By jasondu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 11:30 AM
  6. Named Argument not found
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2011, 04:08 PM
  7. Named argument not found
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2006, 03:55 PM

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