+ Reply to Thread
Results 1 to 5 of 5

VBA Application.Match bug

  1. #1
    Registered User
    Join Date
    01-07-2019
    Location
    Jakarta
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Red face VBA Application.Match bug

    Hi, I am a beginner in VBA programming and I had encounter the following bug in :-
    i = Application.Match(VBA.String(Me.ComboBox2.Value), sh.Range("A:A"), 0)

    Can anyone help explain my mistake : -

    Thank you.

    Please Login or Register  to view this content.
    Last edited by Aremgo; 01-07-2019 at 08:18 AM. Reason: our post does not comply with Rule *2* of Forum RULES

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: VBA Application.Match bug

    Could you send a sample file with the VBA macro? There are enough possibilities for this to have a bug..

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: VBA Application.Match bug

    Aremgo

    1)
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    2) I don't think it's Match method, but VBA.String and i must be declared as Variant.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-07-2019
    Location
    Jakarta
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: VBA Application.Match bug

    Dear Sir,

    Thank you for helping solve the bug.
    It's working now.


  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: VBA Application.Match bug

    You are welcome and thanks for the code tags.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. is it possible to find more than one match using application.match
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2017, 10:54 PM
  2. Application.Match
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-26-2016, 05:52 PM
  3. [SOLVED] Application.Match help. Find a match if first 4 numbers are the same. Asterisk not working
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-24-2013, 08:01 AM
  4. [SOLVED] VBA application.match
    By bergjes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2012, 04:29 AM
  5. Help on Application.worksheet.function.match / evaluate+match
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2012, 04:30 PM
  6. Application.Match... or Application.WorksheetFunction.Match ...
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2011, 11:34 AM
  7. application.match
    By Chip Smith in forum Excel General
    Replies: 3
    Last Post: 03-30-2006, 04:00 PM

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