Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Instance,
Dim LRow As Long Dim CostCode As String Dim Vendor As String With Sheets("Alpha") LRow = Cells(Row,Count,1).End(xlUp).Row Set CostCode = .Range("A2:A" & LRow).Value Set Vendor = .Range("B2:B" & LRow).Value Select Case CostCode Case "<063" 'If CostCode is < "063" Numbers as Text Do this Case "304" Do that Case "386" Select Case Vendor Case "Martin" Do This Case "Charles" Do That End Select End Select End With My syntax is approximative Help appreciated, J.P. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select Case Syntax | Excel Programming | |||
Select Case syntax | Excel Programming | |||
syntax error in case statement? | Excel Programming | |||
Syntax for Select Case | Excel Programming | |||
Select Case syntax | Excel Programming |