ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I create a TextBox on a DialogSheet in VBA? (https://www.excelbanter.com/excel-programming/436660-how-do-i-create-textbox-dialogsheet-vba.html)

snowbear

How do I create a TextBox on a DialogSheet in VBA?
 
I have tried, without success, to add a TextBox to a newly created
DialogSheet. Other controls were created using the 'Add' method, like
'ActiveSheet.Buttons.Add' or 'ActiveSheet.CheckBoxes.Add', but the TextBox
control doesn't accept this method. Any suggestions?

Stefano[_2_]

How do I create a TextBox on a DialogSheet in VBA?
 
Controls.Add("Forms.TextBox.1", "txtName")

"snowbear" wrote:

I have tried, without success, to add a TextBox to a newly created
DialogSheet. Other controls were created using the 'Add' method, like
'ActiveSheet.Buttons.Add' or 'ActiveSheet.CheckBoxes.Add', but the TextBox
control doesn't accept this method. Any suggestions?



All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com