Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using "Case .. To"
Hi everyone,
Say I have a VB piece of code like this: Case 3.45 To 4.44: Num = 40 Can't I replace the "3.45" with a cell location so I can be able to vary the value when needed? I tried this: Case "h35" To "i35": Num = 40 No complaint by the VB compiler, but the code wasn't performing well! Thanks, Mike |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using "Case .. To"
Case Range("h35").Value To Range("i35").Value : Num = 40
-- Regards, Tom Ogilvy "Mike" wrote in message ups.com... Hi everyone, Say I have a VB piece of code like this: Case 3.45 To 4.44: Num = 40 Can't I replace the "3.45" with a cell location so I can be able to vary the value when needed? I tried this: Case "h35" To "i35": Num = 40 No complaint by the VB compiler, but the code wasn't performing well! Thanks, Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
lower case letter "i" always converts to upper case | Excel Discussion (Misc queries) | |||
Converting "uppercase" string data to "lower case" in CSV file | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
how do I count only lower case "x" and exclude upper case "X" | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |