Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Excel 97 with Win 95. I have a project with a lot of If and
ElseIf statement. It work but not very clean programming. I am looking for Case statement example on the net. Thank you for your time. Long |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A Select Case statement if quite simple, and fairly well documented in the
VBA help files. A simple example of Select Case is Dim X As Integer X = 3 Select Case X Case 1 MsgBox "X=1" Case 2 MsgBox "X=2" Case 3 MsgBox "X=3" Case Else MsgBox "X = something else" End Select -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "smi" wrote in message ... I am using Excel 97 with Win 95. I have a project with a lot of If and ElseIf statement. It work but not very clean programming. I am looking for Case statement example on the net. Thank you for your time. Long |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I searched google for "select case" and found over 7000 posts in the *excel*
newsgroups: http://groups.google.com/groups?q=%2...+group:*excel* Here are a couple by Chip Pearson: http://www.cpearson.com/excel/DateTimeEntry.htm and http://www.cpearson.com/excel/DateTimeEntry.htm smi wrote: I am using Excel 97 with Win 95. I have a project with a lot of If and ElseIf statement. It work but not very clean programming. I am looking for Case statement example on the net. Thank you for your time. Long -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Case Statement | Excel Discussion (Misc queries) | |||
Select Case Statement | Excel Worksheet Functions | |||
IF STATMENT OR CASE STATEMENT | Excel Discussion (Misc queries) | |||
Anyone actually get Case statement to work ... ? | Excel Worksheet Functions | |||
CASE statement equivalent | Excel Worksheet Functions |