|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
JSA中输入对话框的三种写法:
function test1(){
        var myNum = Application.InputBox("请录入数字", "取值", 32,"","","","",1)
        Console.log(myNum)
        ActiveCell.Value2=myNum
}
function test2(){
        var myNum = Application.InputBox("请录入数字", "取值", 32,undefined,undefined,undefined,undefined,1)
        Console.log(myNum)
        ActiveCell.Value2=myNum
}
function test3(){
        var myNum = Application.InputBox({Prompt:"请录入数字", Title:"取值", Default:32,Type:1})
        Console.log(myNum)
        ActiveCell.Value2=myNum
}
|
|