Home > How-To Library > String Manipulation
How to replace a character in middle of the string
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * **************************************************************** Sub ReplaceCharacterInMiddle() Dim strTestString As String strTestString = "Progromming" Mid$(strTestString, 6, 1) = "a" Debug.Print strTestString End Sub
If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.