My.Computer.Clipboard.SetText("This is my text", TextDataFormat.Text) MsgBox(My.Computer.Clipboard.GetText(TextDataFormat.Text))