多个输入框excel VBA

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19229608/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 16:49:40  来源:igfitidea点击:

Multiple input box excel VBA

excelvbainputmultiple-columns

提问by Thatdude1

Right now I've been using multiple Input boxes to get user input for a couple of strings i need:

现在我一直在使用多个输入框来获取我需要的几个字符串的用户输入:

 Dim U As String
 Dim P As String

U = Application.InputBox("Enter Username", "Username", Type:=1))
P = Application.InputBox("Enter Pwd", "pwd", Type:=1))

etc ..

等等 ..

Is there any way I can make an input box with multiple inputs or some sort of multiple input into an Excel worksheet using VBA?

有什么方法可以使用 VBA 在 Excel 工作表中制作一个带有多个输入或某种多个输入的输入框?

回答by Joseph