+ Reply to Thread
Results 1 to 3 of 3

Multiple case statements

  1. #1
    Registered User
    Join Date
    11-18-2008
    Location
    Pune
    Posts
    11

    Multiple case statements

    How can i use multiple case statements? Or is there any alternative?

    My problem is:

    I have to give a min. and max range in the workbook. If the user select min as 2 and max as 5 then the function should work within the range 'case 2' and 'case 5' (ie. case 2, 3, 4 & 5) should work.

    case 1
    function()

    case 2
    function ()

    Case 3
    function ()

    case 4
    function ()

    Case 5
    function ()

    case 6
    function ()
    Last edited by abhijit.pendharkar; 04-28-2009 at 02:44 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Multiple case statements

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Take notice of what you have been told about reading the Forum Rules, this is the second post that breaks the Rules!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-18-2008
    Location
    Pune
    Posts
    11

    Re: Multiple case statements

    It was just a kind of a syntax. The code is something is was looking for here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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