Msgbox(s) 输出函数,只有一个确定。注意它的返回值为字符串,如果要返加数字,用int函数转换成整数值,s 为字符串或变量
Inputbox("提示语句","输入框名称") 输入函数,提供一个对话框供用户输入。
dim 定义变量
const 定义常量
vbCrlf 相当于键盘的回车
if a>b then
elseif a=b then
elseif .... then
else
end if
if a>b and b>c then
if a>b or b>c then
do ... (exit do) ... loop
do while 条件 (exit do)...loop 'do内有条件时,必须计数,因为do循环无法自动计数,手动i=i+1
do ... (exit do)...loop while 条件
for i=0 to 2
next
for i=0 to 2
select case i
case 0
x=0
case 1
x=1
case 2
x=2
end select
Inputbox("提示语句","输入框名称") 输入函数,提供一个对话框供用户输入。
dim 定义变量
const 定义常量
vbCrlf 相当于键盘的回车
if a>b then
elseif a=b then
elseif .... then
else
end if
if a>b and b>c then
if a>b or b>c then
do ... (exit do) ... loop
do while 条件 (exit do)...loop 'do内有条件时,必须计数,因为do循环无法自动计数,手动i=i+1
do ... (exit do)...loop while 条件
for i=0 to 2
next
for i=0 to 2
select case i
case 0
x=0
case 1
x=1
case 2
x=2
end select
回复Comments
作者:
{commentrecontent}