+ Reply to Thread
Results 1 to 4 of 4

Select Case not working properly?

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Select Case not working properly?

    Hello everyone, i'm not having a very good day of it today.

    Take a look at the image i have attached, can anyone tell me why the macro has run to the second Case, and not realised that the first one is true? This happens whether I have the first case as "Case Action = 0.283..." or "Case progress.width"

    FYI, if i press F8 again it will run the Online_FeedbackALL sub as though the progress.width was sized between those two values (it isn't, as the immediate window shows)

    Capture.JPG
    IF("helping me", "thanks", "need more detail?")

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Select Case not working properly?

    more like

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Select Case not working properly?

    FANTASTIC! in 2 words and a bit of code you have made Select Case clearer than the microsoft help pages could ever do!

    Thank you so much. Changes have been made and the rest of my day looks brighter already

  4. #4
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Select Case not working properly?

    except one minor thing. As a variant, the action variable did not get recognised as being the same when i put "action = progress.width"
    setting it as a long seems to have fixed this.

    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. select case calculations not working
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 77
    Last Post: 06-21-2014, 07:16 PM
  2. select case calculations not working
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2014, 04:07 PM
  3. [SOLVED] Need the proper syntax to use Case/Select Case in vba properly.
    By rbion in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2013, 02:34 PM
  4. my Select Case function is not working correctly
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2011, 07:56 AM
  5. [SOLVED] Case Select not working
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2010, 06:53 AM
  6. Select Case: Formatting the code properly
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-09-2010, 11:46 AM
  7. Select Case not working
    By RadBrad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2009, 01:11 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