CodeItBetter Programming Another VB Programming Blog

How to replace a character in middle of the string

Posted on October 12, 2011
1
2
3
4
5
6
7
'String Manipulation - How to replace a character in middle of the string
Sub ReplaceCharacterInMiddle()
    Dim strTestString As String
    strTestString = "Progromming"
    Mid$(strTestString, 6, 1) = "a"
    Debug.Print strTestString
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.