Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just different if the names do in fact follow a numbering pattern.
Sub Demo() Select Case UCase([A1].Value) Case "NAME1" To "NAME3" MsgBox "Doing Something" End Select End Sub -- Dana DeLouis "PCLIVE" wrote in message ... I'm drawing a blank on this one. I need an IF statement in VBA that basically says, IF range("A1").value = "name1" or "name2" or "Name3" then DoSomething. The DoSomething code will be the same as long as A1 matches one of the three names. Any help? Thanks, Paul -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup multiple values - sum returned values into single cell | Excel Worksheet Functions | |||
Copy values from a cell based on values of another cell | Excel Discussion (Misc queries) | |||
How to assign values to a cell based on values in another cell? | Excel Worksheet Functions | |||
Search/Filter to find values in another range based on two cell values | Excel Programming |