|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
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
}
|
|