+ Reply to Thread
Results 1 to 3 of 3

Help Using Wildcards (specifically-*) with UDFs

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Help Using Wildcards (specifically-*) with UDFs

    I was wondering if any one can help. I've been trying to look up how wildcards work in UDFs. Here is my code:

    The UDF:

    Please Login or Register  to view this content.
    The Sub:

    Please Login or Register  to view this content.
    In the sub procedure Crit1 and Crit2 the string value NSW in some cells has writing before and after it. For example, "*NSW-HAM". In this case the macro does not catch it in the count. What I would like to do is set up a wildcard like "*NSW*" but it isn't working.

    How would that be coded in a macro?

    Any help would be appreciated. Thank you!

  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: Help Using Wildcards (specifically-*) with UDFs

    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: Help Using Wildcards (specifically-*) with UDFs

    Quote Originally Posted by Norie View Post
    Perhaps.
    Please Login or Register  to view this content.
    Thank you so much Norie!!! That worked. I was having trouble placing the Like statements! Thanks again!

+ 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] Mod function to find specifically 5 only
    By Journeyman3000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2014, 02:33 AM
  2. [SOLVED] Have a number value convert to text specifically
    By pfaz73 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2012, 12:58 PM
  3. [SOLVED] Help regarding macros: specifically how to record F2 and backspace and return
    By golflady in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-01-2012, 04:44 AM
  4. Formatting a cell specifically by date
    By rymember in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2011, 09:04 AM
  5. Activating workbook without naming it specifically
    By Patrick Young in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2005, 11:05 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