Per .vbs userform erzeugen?

Weiß denn keiner wie das geht?

Hallo Dnbma,

in eine .vbs:

Set oForm = CreateObject(„Forms.Form.1“)
Set txtbox = oForm.Controls.Add(„Forms.TextBox.1“, „MyBoxName“, True)
msgbox txtbox.name

leider gelang es mir wie Hans nicht dir Form sichtbar zu machen mit Visible, Show o.ä.

Schau mal hier:

/t/forms-und-vbscript/4800897

Vielleicht kriegst du ja das hin was Chukiee da meint.

Gruß
Reinhard