+ Reply to Thread
Results 1 to 10 of 10

Text Filter-begin With... (multiple Begin Withs?)

  1. #1
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Text Filter-begin With... (multiple Begin Withs?)

    Dear Team,

    I need to use a macro to filter the Data Dump data based on the conditions

    Conditions : 1 : If the D column value begins with : 4500,6500,1032,8000,6000,8500,1000,9320, 7000,7500 than in next column it should update it as "YES" orelse "NO"

    My first challenge is:
    After it completes the filtering based on criteria 1, I want to copy the results and past onto another sheet.

    Please do help me

    Looking for an positive and an earliest response

    attached is the excel for reference

    Regards,
    Hari
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Hi, Hari,

    Column D in the attached workbook is showing a Name (here John Doe), and obviously there canīt be done any filtering on a name regarding a number. And the contents looks very familiar to me but from a different user as well a different posting

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Hi ,

    There was a typo error actually instead of E column i have written as D , pls ignore that so now i wanted that E column number should be sorted as requested ..

    Attached is the sample excel
    Attached Files Attached Files

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Hi, Hari,

    the code will always work on the active sheet:
    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Dear Holger,

    Getting error message as : Run time error :13

    Type mismatch

    If the data begins with "4500, 6500, 1032, 8000, 6000, 8500, 1000, 9320, 7000, 7500" than only it should come as "YES"

    Please check and revert me back please

    Regards,
    Hari
    Last edited by hariexcel1987; 01-29-2013 at 12:44 PM.

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Hi, Hari,

    code was developed and tested on your sample with Excel2007, downloaded the file again, inserted the code in a module, hit F5, no RunTimeError with 2007.

    Ciao,
    Holger

  7. #7
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Wow it,s working for

    Thank you so much much much


    Regards,
    Hari

  8. #8
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Dear Holger,

    Agian the data is not fetching correctly, if i am having blaks then it;s not eaither Yes or No, and also please make below changes if u can

    1. Message box pop up should come to enter the multiple"Begins with Data " Ex: 4500,6500 etc....
    2.After comletion of filtering "YES " (column F) data should be copied to the next sheet

    attached is the sample excel file ...

    Regards,
    Hari
    Regards,
    Hari
    Attached Files Attached Files
    Last edited by hariexcel1987; 01-30-2013 at 06:17 AM. Reason: change

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Text Filter-begin With... (multiple Begin Withs?)

    Hi, Hari

    Agian the data is not fetching correctly
    Maybe that because something like "FUR/12-13/2214" appears in row 585?
    Please Login or Register  to view this content.
    For your information: a MessageBox will only be used to show information, theresīs no way to get information into that (thatīs what an InputBox is used for).
    After comletion of filtering "YES " (column F) data should be copied to the next sheet
    Lucky me: thereīs only one sheet in the sample workbook. But if I remember correctly you have received a code for Filtering and copying data in your other thread.

    Ciao,
    Holger

  10. #10
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    VBA Combo box creation

    Hi,

    Attached is the file , for your information.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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