多input框擅长VBA

现在我已经使用多个input框来获取用户input的string,我需要:

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

等等。

有没有办法,我可以做一个input框多input或某种多重input在Excel中使用VBA?

你可以创build一个用户表单:

http://www.excel-vba-easy.com/vba-userform-excel-vba.html