<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete some character from text in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969562#M6826</link>
    <description>&lt;P&gt;oh I see that length is different from one to the other....&lt;BR /&gt;One way can be checking after the " = ".&lt;BR /&gt;For example if all the numbers you want after have 3 digits like " = 320"&lt;BR /&gt;you can cut counting 3&amp;nbsp; + space = 4 characters after "=".&lt;BR /&gt;using InStr and Mid.&lt;BR /&gt;example:&lt;BR /&gt;1) looking for "="&lt;BR /&gt;ch1 =&amp;nbsp;&lt;SPAN&gt;"5f12 l=350yyyy"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'string&lt;/SPAN&gt;&lt;BR /&gt;pos = InStr(1, ch1, "=")&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'position of "=" in string , here 6&lt;BR /&gt;Mid cuts where you want, here I will use from beginning up to "=" + 3.&lt;BR /&gt;all together gives the solution you can use:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ch1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"5f12 l=350yyyy"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;ch2 = Mid(ch1, 1, InStr(1, ch1, "=")+3)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' gives ch2 = "&lt;SPAN&gt;5f12 l=350"&amp;nbsp; &amp;nbsp; &amp;nbsp; referring&amp;nbsp;to "=" + 3 characters for 320&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;2) looking for the first "y" and cutting there:&lt;BR /&gt;&lt;SPAN&gt;ch1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"5f12 l=350yyyy"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ch2 = Mid(ch1, 1, InStr(1, ch1, "y") -1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;' gives ch2 = "5f12 l=350"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-1&amp;nbsp; gives position before "y"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I guess you will use solution 2, involving you know what to clean....&lt;BR /&gt;You can trim first the ch1 to clean spaces before and after characters.&lt;BR /&gt;Good luck &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 13:50:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-30T13:50:39Z</dc:date>
    <item>
      <title>Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7913246#M6823</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I want to delete a character from text objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, change "5f10 l=520..." to "5f10 l=520"&lt;/P&gt;&lt;P&gt;This will be a part of another routine so find&amp;amp;replace not usefull for me.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 08:12:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7913246#M6823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-06T08:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7968088#M6824</link>
      <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="MessageSubjectIcons "&gt;&lt;DIV class="lia-message-subject"&gt;&amp;lt;&amp;lt;Delete some character from text&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I want to delete a character from text objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, change "5f10 l=520..." to "5f10 l=520"&lt;/P&gt;&lt;P&gt;This will be a part of another routine so find&amp;amp;replace not usefull for me.&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Hello,&amp;nbsp;&lt;BR /&gt;I see different solutions:&lt;BR /&gt;1) if you know exactly length you want:&lt;/P&gt;&lt;P&gt;ch1 =&amp;nbsp;&lt;SPAN&gt;"5f10 l=520"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'length you want&lt;/SPAN&gt;&lt;BR /&gt;ch2 = &lt;SPAN&gt;"7T20 l=520..."&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'What you have ...&lt;/SPAN&gt;&lt;BR /&gt;LSet ch1 = ch2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'ch1 takes from ch2 the part equal to his length&lt;BR /&gt;result ch1 =&amp;nbsp;&lt;SPAN&gt;"7T20 l=520"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' replaces ch2 in ch1, keeping it's length&lt;BR /&gt;&lt;/SPAN&gt;with a loop you can&lt;BR /&gt;&amp;nbsp;replace with different ch1.&lt;BR /&gt;&lt;BR /&gt;2) the classic CUT!&amp;nbsp; &amp;nbsp; left(var, length)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ch1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"5f10 l=520" is '10' characters long.&lt;BR /&gt;&lt;/SPAN&gt;so:&lt;BR /&gt;ch2 = left(&lt;SPAN&gt;"5f10 l=520...", 10)&amp;nbsp;&lt;BR /&gt;gives&lt;BR /&gt;ch2 =&amp;nbsp;"5f10 l=520"&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Apr 2018 16:17:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7968088#M6824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T16:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7968990#M6825</link>
      <description>&lt;P&gt;Hi, thank you for your help.&lt;/P&gt;&lt;P&gt;I have very poor knowledge about vba and sometimes i dont understand how to use a command.&lt;/P&gt;&lt;P&gt;I just try how it works. I didnt find a way to use your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my drawing there are a lot of texts that contain unwanted characters.&lt;/P&gt;&lt;P&gt;Those texts have different lenght and string.&lt;/P&gt;&lt;P&gt;All texts have one or more "y" at the end, like "5f12 l=350yyyy" or "5f10/10 l=200y".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 08:38:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7968990#M6825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969562#M6826</link>
      <description>&lt;P&gt;oh I see that length is different from one to the other....&lt;BR /&gt;One way can be checking after the " = ".&lt;BR /&gt;For example if all the numbers you want after have 3 digits like " = 320"&lt;BR /&gt;you can cut counting 3&amp;nbsp; + space = 4 characters after "=".&lt;BR /&gt;using InStr and Mid.&lt;BR /&gt;example:&lt;BR /&gt;1) looking for "="&lt;BR /&gt;ch1 =&amp;nbsp;&lt;SPAN&gt;"5f12 l=350yyyy"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'string&lt;/SPAN&gt;&lt;BR /&gt;pos = InStr(1, ch1, "=")&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'position of "=" in string , here 6&lt;BR /&gt;Mid cuts where you want, here I will use from beginning up to "=" + 3.&lt;BR /&gt;all together gives the solution you can use:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ch1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"5f12 l=350yyyy"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;ch2 = Mid(ch1, 1, InStr(1, ch1, "=")+3)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' gives ch2 = "&lt;SPAN&gt;5f12 l=350"&amp;nbsp; &amp;nbsp; &amp;nbsp; referring&amp;nbsp;to "=" + 3 characters for 320&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;2) looking for the first "y" and cutting there:&lt;BR /&gt;&lt;SPAN&gt;ch1 =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"5f12 l=350yyyy"&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ch2 = Mid(ch1, 1, InStr(1, ch1, "y") -1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;' gives ch2 = "5f12 l=350"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-1&amp;nbsp; gives position before "y"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I guess you will use solution 2, involving you know what to clean....&lt;BR /&gt;You can trim first the ch1 to clean spaces before and after characters.&lt;BR /&gt;Good luck &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:50:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969562#M6826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969623#M6827</link>
      <description>&lt;P&gt;You can also make first a control of the string.&lt;BR /&gt;If you want to check for "y" :&lt;BR /&gt;For i = 1 to Len(ch1)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'length of ch1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if InStr(1, "y", LCase(Mid(ch1, i, 1))) &amp;lt;&amp;gt; 0 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'write down the function&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:17:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969623#M6827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T14:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969759#M6828</link>
      <description>&lt;P&gt;I am sorry for taking your time.&lt;/P&gt;&lt;P&gt;I just know simple methods end functions to use.&lt;/P&gt;&lt;P&gt;I tried something like this gave an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Each ent In ThisDrawing.ModelSpace&lt;/P&gt;&lt;P&gt;&amp;nbsp; If TypeOf ent Is AcadText Then&lt;BR /&gt;&amp;nbsp; ch1 = CStr(ent) &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'This gives error&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For i = 1 To Len(ch1) 'length of ch1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If InStr(1, "ÿ", LCase(Mid(ch1, i, 1))) &amp;lt;&amp;gt; 0 Then &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'write down the function&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ch2 = Mid(ch1, 1, InStr(1, ch1, "y") - 1) &lt;FONT color="#FF0000"&gt;'do you mean this as the function&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next i&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7969759#M6828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7970350#M6829</link>
      <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Try this&amp;nbsp;, tell me if it works.&amp;nbsp; I did it fast, check it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub ConvertText ()&lt;/P&gt;&lt;P&gt;Dim count As Integer&lt;BR /&gt;count = ThisDrawing.ModelSpace.count&lt;BR /&gt;ReDim newObjs(count) As AcadEntity&amp;nbsp; &amp;nbsp; 'check this&lt;BR /&gt;Dim index As Integer , i as integer&lt;/P&gt;&lt;P&gt;Dim ch1 as String, ch2 as String&lt;BR /&gt;For index = 0 To count - 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Set newObjs(index) = ThisDrawing.ModelSpace.Item(index)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; For Each &lt;SPAN&gt;newObjs&amp;nbsp;&lt;/SPAN&gt;In ThisDrawing.ModelSpace&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TypeOf &lt;SPAN&gt;newObjs&amp;nbsp;&lt;/SPAN&gt;Is AcadText Then&amp;nbsp; &amp;nbsp; 'check if your treated text is all AcadText, other do exist.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ch1 = &lt;SPAN&gt;newObjs&amp;nbsp;&lt;/SPAN&gt;.FieldCode&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'This gives error&amp;nbsp; _ &lt;FONT color="#339966"&gt;AcadText in an object( not a text. his text attribute is FieldCode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For i = 1 To Len(ch1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If InStr(1, "y", LCase(Mid(ch1, i, 1))) Then&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'write down the function &lt;FONT color="#339966"&gt;_sorry "&amp;lt;&amp;gt; 0 " not needed,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ch2 = Mid(ch1, 1, InStr(1, ch1, "y") - 1)&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;'do you mean this as the function _&lt;FONT color="#339966"&gt;yes two Vb functions&lt;/FONT&gt;.&lt;BR /&gt;&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;newObjs&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;.FieldCode = ch2&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next i&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Next&amp;nbsp;&lt;SPAN&gt;ent&amp;nbsp;&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:06:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7970350#M6829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T19:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971331#M6830</link>
      <description>&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;One step left i think.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code finds the texts, corrects it but doesnt write the new value.&lt;/P&gt;&lt;P&gt;Program gives error as in picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here ch2 is the corrected text.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConvertText.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/495165iE280BFB3A6F51642/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConvertText.JPG" alt="ConvertText.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 07:51:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971331#M6830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-01T07:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971607#M6831</link>
      <description>&lt;P&gt;Yes, Indeed. I see . As I had not much time yesterday I didn't check if it was the right method "Field". I guess it's only to ask the field. Try to find the change text method on your side ; I'll see if I find it. Must be easy. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 12:05:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971607#M6831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-01T12:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971646#M6832</link>
      <description>&lt;P&gt;Thank you so much, finally done.&lt;/P&gt;&lt;P&gt;"newObjs(index).TextString = ch2" works fine.&lt;/P&gt;&lt;P&gt;I will try to do faster after now.&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 12:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971646#M6832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-01T12:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971647#M6833</link>
      <description>&lt;P&gt;after checking I found the textString method. Works for read and write.&lt;BR /&gt;so the line would become:&lt;BR /&gt;nexObs(index).TextString = ch2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Try this, tell me me if it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 12:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971647#M6833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-01T12:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete some character from text</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971650#M6834</link>
      <description>&lt;P&gt;We found at same time. good work. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Have good luck for next work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 12:31:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-some-character-from-text/m-p/7971650#M6834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-01T12:31:00Z</dc:date>
    </item>
  </channel>
</rss>

