home *** CD-ROM | disk | FTP | other *** search
- Sub GroKlei
- ActiveWindow.SelectWord : sText=ActiveWindow.SelectionText
- Select Case sText
- Case LCase(sText)
- sText=UCase(Left$(sText,1)) + Right$(sText, Len(sText)-1):Selection.Insert sText
- Exit Sub
- Case UCase(sText)
- strConvert (stext,0)
- Exit Sub
- End Select
- If Left(sText,1) = UCase(Left(sText,1)) Then
- strConvert (stext,1)
- Exit Sub
- Else
- strConvert(stext, 0)
- End If
- End Sub
- Sub strConvert (cText As String, Flag As Integer)
- For I = 1 To Len(cText)
- If Flag=1 Then
- Mid( cText ,I, 1, UCase(Mid(cText,I,1))
- Else
- Mid( cText ,I, 1, LCase(Mid(cText,I,1))
- End If
- Next I
- Selection.Insert cText
- End Sub
-
-
-