About 522,000 results
Open links in new tab
  1. 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 …

  2. excel - VBA. Nesting if elseif within Select Case procedure - Stack ...

    Apr 16, 2024 · Case "string_indicator1" And you should do 2 things: Always use Option Explicit at the top of your code (in the VBA editor, use Tools->Options and on the "Editor"-Tab, check "Require …

  3. 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 …

  4. vba - Select Case with OR - Stack Overflow

    May 25, 2017 · I'm trying to set up a conditional formatting where if the value in my cell doe not equal to item1 or item2 or item3 and so on then it would highlight it. The code is highlighting my cell even thou...

  5. excel - IF ELSE vs Select Case - Stack Overflow

    Jun 11, 2015 · Some clarification on Select Case before actually answering your question: as you suggested, you can combine several values in one Case switch in VBA, e.g.: Case Is>40, 20, 10, 2 …

  6. 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.

  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 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.

  9. vba - Which way is faster? If elseif or select case - Stack Overflow

    Jul 25, 2012 · @DougGlancy: Which Excel version are you using? I have Switch Function in VBA Excel 2010. Though I find Switch Function more complicated then Select Case. All these versions of Excel …

  10. Select Case Nested in Excel VBA - Stack Overflow

    Jul 30, 2020 · Select Case Nested in Excel VBA Asked 5 years, 5 months ago Modified 5 years, 5 months ago Viewed 734 times