怎样用VBA代码编写IF嵌套公式

[复制链接]
查看11 | 回复2 | 2016-3-1 11:07:15 | 显示全部楼层 |阅读模式
VBScript中的嵌套 if 语句的语法是:If(boolean_expression) Then Statement 1.......... Statement n If(boolean_expression) Then
Statement 1..........Statement n ElseIf (boolean_expression) Then
Statement 1.........
Statement n Else Statement 1......... Stat...
回复

使用道具 举报

千问 | 2016-3-1 11:07:15 | 显示全部楼层
Sub ife()Const PI = 3.1415926535898C5 = Cells(5, "C")D5 = Cells(5, "D")E5 = Cells(5, "E")H5 = Cells(5, "H")If C5 = 0 Then Cells(5, "K") = ""ElseIf C5 = "椭圆管" An...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行