+ Reply to Thread
Results 1 to 2 of 2

Select case inside a select case

Hybrid View

KarelMusa Select case inside a select... 02-11-2019, 06:47 PM
humdingaling Re: Select case inside a... 02-11-2019, 07:10 PM
  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Windows 2016
    Posts
    49

    Select case inside a select case

    Howdy

    Is it possible to get a select case inside another select case?

     
    sub selecttest()
    
    Select case X
          Select Case Y
                        Case A
                        Case B
                    Case Z
                        Case C
                        Case D
          end Select
    end Select
    
    end sub
    Or something like this, is it possible?

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Select case inside a select case

    it is possible just like nested IF statements
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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] Select Case with multiple lines in a case statement?
    By jGKpZ8a33sPrnqX8fam7 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2017, 10:25 AM
  2. [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
  3. [SOLVED] Disregard case in VBA code. (UCase, LCase, Select Case)
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-07-2012, 12:12 PM
  4. 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
  5. Select Case stops after 1st case
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-02-2010, 04:25 PM
  6. 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
  7. Select case / case is, multiple arguments
    By Werner Rohrmoser in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2006, 07:00 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