Paul Sansom
Board Regular
- Joined
- Jan 28, 2013
- Messages
- 178
- Office Version
-
- 2021
- 2016
- Platform
-
- Windows
Hi Guys and Happy New Year 2014
I have an editbox in my customised ribbon and it is an input for names in a list
After collecting the input the code clears the name from a list of names.
??? How can I clear the contents of the editbox at the end of the sub
Any guidance gratefully received as always
Paul
I have an editbox in my customised ribbon and it is an input for names in a list
After collecting the input the code clears the name from a list of names.
??? How can I clear the contents of the editbox at the end of the sub
Code:
Public Sub RemoveNameBox_onChange(control As IRibbonControl, Text As String)'
' Code for onChange callback. Ribbon control editBox
'
' Set sheet shortcuts
Set pws = Worksheets("Panels")
Set rws = Worksheets("Report")
DeleteName = Text
pws.Range("DeleteName") = DeleteName
DeleteNameValue = pws.Range("DeleteNameValue")
If pws.Range("=$AK$31") >= 1 Then
pws.Range("=$AF$5").Select
Selection.Offset(DeleteNameValue, 0).Select
Selection.ClearContents
[I]'XXX want to clear the text edit box of the entry here ready for a new name XXX[/I]
End If
End Sub
Any guidance gratefully received as always
Paul