<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[V8i VBA] Need to find a way to parse text from a text element</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/105392/v8i-vba-need-to-find-a-way-to-parse-text-from-a-text-element</link><description>I am looking for a method that would allow me to parse text from a selected text element and attach the parsed text to a defined general url, then I would then add the url link to the original element. 
 
 I know that this is a tall order, but I cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [V8i VBA] Need to find a way to parse text from a text element</title><link>https://communities.bentley.com/thread/317158?ContentTypeID=1</link><pubDate>Sat, 14 Mar 2015 06:14:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cd35efd5-5854-4f99-a01d-78b7c5527234</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;I have to admit I don&amp;#39;t know why to post the same questing repeatedly.&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;Jeff Dragowski&amp;quot;]method that would allow me to parse text from a selected text element[/quote]&lt;/p&gt;
&lt;p&gt;It&amp;#39;s hard to answer if you don&amp;#39;t provide information how and using what code the text is selected. So assuming you are working with Selection Set using standard approach, so you are in an element enumerator. In such case this code should be enough:&lt;/p&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;Dim textEl As TextElement
Set textEl = ee.Current.AsTextElement
Dim myText As String
myText = textEl.Text&lt;/pre&gt;
&lt;p&gt;[quote user=&amp;quot;Jeff Dragowski&amp;quot;]I know that this is a tall order[/quote]&lt;/p&gt;
&lt;p&gt;It seems to me not clear from your question if you ask for help / advice like &amp;quot;see VBA help, method GetSelectedElement&amp;quot; or you want somebody will write a code for you.&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;Jeff Dragowski&amp;quot;]I am currently looking into the GetCustomProperty method[/quote]&lt;/p&gt;
&lt;p&gt;No, it&amp;#39;s a wrong way.&lt;/p&gt;
&lt;p&gt;I have a question: Do you have &lt;a target="_blank" href="http://www.bentley.com/en-US/Training/Products/Resources/Books/Learning+MicroStation+VBA.htm"&gt;Learning MicroStation VBA book&lt;/a&gt;? It provides a huge number of code examples and useful advices, which make using MicroStation VBA easier.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>