Private Sub CommandButton1_Click()
'Content.Text = Replace(Content.Text, "Tele Extn: ;", "Tele Extn: " & Extn.Text & " ;")'Content.Text = Replace(Content.Text, "Floor: ;", "Floor: " & Floor.Text & " ;")Cells(10, 2) = "/" & StaffID.TextCells(11, 2) = L(Location.Text)Cells(12, 2) = Content.TextCells(10, 2).SelectActiveCell.CopyEnd Sub Private Sub StaffID_Change()If StaffID.Text <> "" ThenSet MyData = New DataObjectMyData.SetText StaffID.TextMyData.PutInClipboardEnd IfEnd SubPrivate Sub Worksheet_SelectionChange(ByVal Target As Range)
If Cells(10, 2).Copy Then Cells(11, 2).CopyEnd IfEnd SubFunction L(Data) As String
If UCase(Data) = "GZC" ThenL = "GZC - GuangZhou I"ElseIf UCase(Data) = "FSC" ThenL = "FSC - FoShan"ElseIf UCase(Data) = "TKH" ThenL = "TKH - TaiKouHui"End IfEnd Function