Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Me again. As explained about a half hour ago, newbie user to VB. No
really sure of grammar and stuff and I can't see what's going on here Basically, the formula takes the area of a building and assigns it ranking integer. Any input result in as output of 0 (zero). Help.. btw, are there any good sites out there for a quick and dirty intro t VB - grammar, basic functions and statements, etc.? Not excel specifi necessarily... thanks. Oh! Here's the code: Function SizeRank(Area As Integer) As Integer If Area 10000 Then Size = 1 ElseIf Area <= 10000 And Area 5000 Then Size = 2 ElseIf Area <= 5000 And Area 2000 Then Size = 3 ElseIf Area <= 2000 And Area 600 Then Size = 4 ElseIf Area <= 600 Then Size = 5 End If End Functio -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function newbie | Excel Worksheet Functions | |||
Newbie: Help with OFFSET function | Excel Worksheet Functions | |||
Newbie: worksheet function help | Excel Worksheet Functions | |||
I'm a newbie please help with my function | New Users to Excel | |||
Newbie needs a function (how sad) | Excel Worksheet Functions |