Dim I As Integer
Dim J As Integer
Dim dataStr As String
Dim buildStr As String
Dim tempStr As String
Dim Done As Boolean
''''''''''''''''''
Dim myData As New MSForms.DataObject 'This line was moved from the UserForm code
''''''''''''''''''
Sub main()
buildStr = ""
dataStr = "Use ALT + Keypad for special characters. Examples:" + Chr(13)
dataStr = dataStr + "171 = " + Chr(189) + " 172 = " + Chr(188) + _
" 241 = " + Chr(177) + Chr(13)
dataStr = dataStr + "250 = " + Chr(183) + " 253 = " + Chr(178) + _
" 248 = " + Chr(186) + Chr(13) + Chr(13)
dataStr = dataStr + "Choose OK to copy to clipboard." + Chr(13)
tempStr = buildStr
buildStr = InputBox(dataStr, "Editor Special Characters", tempStr)
If buildStr <> "" Then
''''''''''''''''''''''''
myData.SetText buildStr 'Remove the UserForm reference
myData.PutInClipboard 'from these two lines
''''''''''''''''''''''''
End If
End Sub