About 2,410,000 results
Open links in new tab
  1. vba - Select Case with OR - Stack Overflow

    May 25, 2017 · Case Is <> item1, item2, item3, item4, item5, item6, item7, item8, _ item9, item10, item11, item12 But it's probably better to use a different data structure so that you don't need to keep …

  2. excel - VBA Case Select Multiple Conditions - Stack Overflow

    Jan 24, 2014 · New to VBA. I'm attempting to build a value of Dimensions (pulling from two different cells in an excel spreadsheet in which one might be larger than the other, and I always want the lower …

  3. Using AND in VBA excel with Select case - Stack Overflow

    5 VBA Select Case 'short-circuits' (i.e. no further cases are examined) once a matching criteria is met so there is no need for And operators.

  4. VBA Select Case number to number greater than and less than

    Feb 6, 2018 · 3 select case true case a >= 0 and a < 7 MsgBox "ok" case else MsgBox "no" end select But, unless you have more than two conditions, I would suggest you use an If instead.

  5. vba - Select Case with Like - Stack Overflow

    May 5, 2023 · Please read about Select Case Statement syntax! I found this article VBA select case like: operator, string, statement, please look at chapter How to use the True expression.

  6. Excel VBA nested case function for multiple conditions

    Mar 22, 2018 · I have a sql query and want to replicate in Excel VBA. I am having trouble using multiple case statements example columns column(a) - segment_nbr column(b) - ltv segment_nbr ltv 1 …

  7. vba - Select CASE / CASE over range of cells - Stack Overflow

    Oct 19, 2014 · Look in to how to use a For Each ... Next statement. This will allow you to iterate over a range of cells in a column or row, for example. You can then use some other methods like Offset to …

  8. vba - Select Case Not Or - Stack Overflow

    Case Not "P", "Ev", "Af" 'my code End Select The case could equal 50 different values and I want the same action (under 'my code) to be performed for all of them unless the result is P, Ev or Af.

  9. VBA Case Select based on Multiple Variables - Stack Overflow

    Mar 17, 2021 · Trying to build a Select Case statement that does a similar job to a nested if function. Essentially I want to give a cell a value (in Column i + 1) based on values of two columns (column P …

  10. vba - Select Case with String - Stack Overflow

    Aug 21, 2014 · I am getting frustrated with using Select Case and a string to compare. I just need to check if somebody makes a comment or just go on by scanning different objects. So I read in the …