+ Reply to Thread
Results 1 to 4 of 4

Need Help in generalizing the search criteria in Macro code

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Need Help in generalizing the search criteria in Macro code

    HTML Code: 
    This code searches the "Time" Column in first ten rows and copies it to another sheet...
    if I have encountered with such a column whose title is "Time in seconds" then it will not search this column...What i want is the modification of this code such that it can detect column which contains any part of "Time" word in it

    Regards

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: Need Help in generalizing the search criteria in Macro code

    Try changing xlWhole to xlPart


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Need Help in generalizing the search criteria in Macro code

    Thanks bro

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: Need Help in generalizing the search criteria in Macro code

    You're welcome. Thanks for the rep.

+ 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. Replies: 4
    Last Post: 01-08-2013, 12:37 PM
  2. Generalizing a recorded macro to import daily text file
    By excelVBAn00b in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2012, 05:36 PM
  3. [SOLVED] Macro ignores search code when 1 of the 2 search parameters is not found
    By BrodyNoochie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 05:21 PM
  4. VBA code for search with two criteria
    By auber in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2009, 08:25 AM
  5. VBA code for search with two criteria
    By auber in forum Excel General
    Replies: 1
    Last Post: 11-18-2009, 10:30 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