B
Benz
Hi,
I have a toolbar with a textbox - im trying to create a macro that will copy
the selected text and auto paste to the textbox in the toolbar.
This is what I thought would work but isint.....
Any help would be appreciated.
Sub Ldtaskbr()
'To paste selected text in 'Task' Toolbar
Dim sendList As CommandBarComboBox ' list of users (Textbox) (2)'
Set sendBar = Application.CommandBars("Task")
Set sendList2 = sendBar.Controls.Add(Type:=msoControlEdit, Before:=1)
Selection.Copy
With sendList2
.Text = Slection.Paste
End With
End Sub
I have a toolbar with a textbox - im trying to create a macro that will copy
the selected text and auto paste to the textbox in the toolbar.
This is what I thought would work but isint.....
Any help would be appreciated.
Sub Ldtaskbr()
'To paste selected text in 'Task' Toolbar
Dim sendList As CommandBarComboBox ' list of users (Textbox) (2)'
Set sendBar = Application.CommandBars("Task")
Set sendList2 = sendBar.Controls.Add(Type:=msoControlEdit, Before:=1)
Selection.Copy
With sendList2
.Text = Slection.Paste
End With
End Sub