MACRO LIBRARY

Lesson 1.6 - replace function

Free public access. No account or subscription required.

Files

Lesson 1.6 - replace function

Code

Dim strText As String
    
Sub main()
    strText = "I love modeling in 2D!"
    strText = Replace(strText, "2D", "3D")
    MsgBox strText
End Sub