+ Reply to Thread
Results 1 to 11 of 11

Unable to pop up message

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Unable to pop up message

    Hi friends,
    In this code if the filter entry is not found then the message should pop up 'No match found" so that the user understand that no match found.

    Please suggest me a code for it.

    Please Login or Register  to view this content.
    Thanking you in anticipation.

    Regards,

    Mukesh

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Unable to pop up message

    Hi mukeshbaviskar,

    The below is the correct syntax for the MsgBox.

    You also need to change the name of the Sub to something other than 'name'

    And you were nearly there but needed 'Selection' before Autofilter.



    Please Login or Register  to view this content.
    Remember you are unique, like everyone else

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Unable to pop up message

    Hi noboffinme,
    Thank you. Please explain me why the sub name should be change so that I would avoide such mistake in future. Actually the code is working fine only I want a little modification if the enter name is not found then the message should pop up 'No match found'. In this code the message didn't pop up if the entry name is not found. The message 'The filtered list is ready' is pop up in both situation. If entry is found and not found.

    Thank you.

    Regards,

    Mukesh

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Unable to pop up message

    I have a quick question for you.

    You want to filter out the value in the whole range B7 - AB3000 that the user enters into an Inputbox.

    Are all Cells in that Range populated?

  5. #5
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Unable to pop up message

    Yes. The macro is working fine and filtering the name and populate the whole range.
    Simply I want the code to display a message 'No match found' if the name is not found.

    Thank you.

    Mukesh

  6. #6
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Unable to pop up message

    Hi mukeshbaviskar,

    The below code will do what you've asked.

    You need to make a couple of changes to your data though.

    Define the Name of the Range of Cells 'B7:AB3000' as 'tSource'

    Name your Worksheet "Sheet1"

    The Column that will be searched for the Value you input will be the Third Column of your table.

    As your data starts in Column 'B' the Third Column from there will be Column 'D'.

    Let me know how you go.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Unable to pop up message

    Hi
    I'm getting error as follows:

    run time error 1004 'Method Range' of object_Globle failed

    Please suggest me a solution.

    Thank you.

    Regards,

    Mukesh

  8. #8
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Unable to pop up message

    At what line in the code does the error happen?

  9. #9
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Unable to pop up message

    Hello Noboffinme,
    The error happen in the following line.

    Please Login or Register  to view this content.
    Thank you.

    Regards,

    Mukesh

  10. #10
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Unable to pop up message

    Have you done this step as requested?

    Define the Name of the Range of Cells 'B7:AB3000' as 'tSource'

  11. #11
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Unable to pop up message

    Hi Noboffinme,
    No,Sorry! How to do it.

    Thank you.

    Regards,

    Mukesh

+ 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. Unable to create message box based on the equal value of two cells
    By ss_bb_24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2007, 01:26 AM
  2. error message - unable to save external link values
    By BitsofColour in forum Excel General
    Replies: 0
    Last Post: 10-04-2005, 03:05 PM
  3. [SOLVED] unable to reopen saved files message says corrupted
    By conniefrp in forum Excel General
    Replies: 2
    Last Post: 04-10-2005, 10:06 PM
  4. Error message: Unable to record
    By Tim in forum Excel General
    Replies: 0
    Last Post: 01-26-2005, 03:25 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