Hi,
I am new to Excel VBA and I am trying to clear the contents of a worksheet that contains both normal and activeX text boxes.
I tried the following but it doesn't seem to work. Any guidance would be really appreciated.
Sub TextBoxClear()
Dim wks As Worksheet, tb As TextBox
For Each wks In ActiveWorkbook.Worksheets
For Each tb In wks.TextBoxes
tb.Text = " "
next wks
End Sub
Many Thanks,
Zoe
Bookmarks