TextBox is used to display data, edit data, etc in the rectangular box. The Textbox can be linked to a Worksheet Cell. The TextBox can have static and dynamic value. When data or text is static in the TextBox field, it represents the read only information. It can be used on the WorkSheet or UserForm. You can see how it works and more details about ActiveX TextBox Control on the UserForm or Worksheet in the following chapter.

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates


VBA ActiveX TextBox_Control on the Worksheet

Please find more details about VBA ActiveX TextBox Control on the Worksheet.

  1. Go To Developer Tab and then click Insert from the Controls
  2. Click on the TextBox_control from the ActiveX Controls group.
  3. Drag the control on the Worksheet.
  4. Right click on the TextBox_control, before that Design Mode should be turned ON.
  5. Click on properties from the available list.
  6. On the left side find ‘Text’ from the available properties of the control.
  7. On the right side mention as ‘Welcome To mongopono.ru’. Please find the below screen shot for the same.
  8. You can link the Text box to a Worksheet cell. Right click on Text box and select properties.
  9. On the left side find ‘LinkedCell’ from the available properties of a Text Box.
  10. On the right side mention the linked cell as ‘F2’. Please find the below screen shot for the same.
  11. Like this you can add number of TextBox controls on the Worksheet according to your requirement.

Delete TextBox_Control on the Worksheet using VBA

Please find the below code, it will show you how to delete or remove the control on the worksheet. In the below example, its deleting the Text Box named ‘TextBox1’ which is on the worksheet named ‘Sheet11’. Where Delete is the property of Shape object.

Sub Delete_TextBox()
Sheets("Sheet11").Shapes("TextBox1").Delete
End Sub
LIMITED TIME OFFER

Leave A Comment


Related pages


boolean in vbapassword protect excel workbookvba timer functioncompare dates vbaquestions for interview for freshersexcel iserror vlookupexample dashboards in excelgoto label vbaproject dashboard in excelexcel widget dashboardremove excel macro passwordexcel vba class module examplemerge cells in excel 2010excel 2007 chart wizardms excel vlookup examplevba filesystemobjectrange in excel vbahlookup syntaxthe number of rows in a worksheet isexcel password cracker macrogenpact aptitude questionsvba excel learnexcel vba lookup valuehow to add a new worksheet in exceladvanced excel tips and techniqueshow do i make a pivot table in excel 2010sql ddl dml dcl tcl commands with examplesexcel project management dashboard templatechange the width of column in excelprogramming questions for freshersvba filterexcel data entry form template excel 2007how to insert a macro buttoncolumns vbaexcel vba print commandhow to delete odd rows in exceldynamic charts in excel 2007run a macro in excel 2007vba combobox listexcel filter out duplicatesvlookup parametersexcel spreadsheet for project managementvb colour codesvba unprotect sheet without passwordvlookup vba excelvba programming in excel 2007vba select worksheetexcel pivotchartmake pivot table excelhide sheets in excel vbasimple macro in excelhow to adjust cell width in excelexcel vba testexcel 2007 hyperlinkoperators in ms excelclustered column chart in excelquality checklist template excelvba open a fileado sqlpowerpoint meeting agenda templatevlookup definitionmacros codingunprotecting excel workbookexcel vba userform framesimple vba examplemeeting minutes template excelaccess vba tutorialsvba nested loopsexcel hyperlink vbawhat is ddl and dml in sql serverexcel macro open foldervbyesnocancelmerge cells excelproject timelines in excel