VB script + replcae word in txt
code , that find in the txt file the line that start with the : THIS_LOCATION and replace the OFF_LINE with NEW
if InStr(strText , 'THIS_LOCATION' ) then
strNewText = Replace(strText, "OFF_LINE", "NEW")
End if
the VB script failed on t开发者_JS百科he line :
if InStr(strText , 'THIS_LOCATION' )
what wrong?
THX yael
You need double quotes:
If InStr(strText, "THIS_LOCATION") Then
精彩评论