+ Reply to Thread
Results 1 to 8 of 8

Select Case - End select issue

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Select Case - End select issue

    Hi experts,
    I want if column M cells includes differ from "apple", "orange", "banana" then MsgBox pop up "Column M cells includes differ from apple orange banana ! "
    Following macro doesnt work.
    Please Login or Register  to view this content.
    Any support will be thankful...
    Last edited by HerryMarkowitz; 12-31-2013 at 12:27 PM.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Select Case - End select issue

    What do you want to do, or return a value?

    You can not assign the value of 1 to error.
    Last edited by AB33; 12-31-2013 at 12:28 PM.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select Case - End select issue

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Select Case - End select issue

    I want this;
    If one of Column M cells value lets say "grape" then MsgBox pop up "Column M cells include differ from apple orange banana ! "
    Last edited by HerryMarkowitz; 12-31-2013 at 02:01 PM.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Select Case - End select issue

    Well, you have corrected it.
    I do not see any syntax error.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select Case - End select issue

    ??

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Select Case - End select issue

    Hi JOHN H. DAVIS,
    Thanks for code.
    One question;
    If I change from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    any error come up ?

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select Case - End select issue

    No it shouldn't make a difference.

+ 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] End Select without Select Case on vbYesNoCancel
    By jshaw82 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2013, 05:02 PM
  2. [SOLVED] Error: End Select without Select Case
    By RGrunden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 02:34 PM
  3. Case Select compile error "Case without case select"
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2012, 06:50 AM
  4. Case Select....The alternative method for long "Select Case"
    By kimyap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2008, 01:24 AM
  5. Select Case - issue
    By George in forum Excel General
    Replies: 7
    Last Post: 03-17-2006, 01:25 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