<?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: How to make the selected value in a combobox the current layer in the drawin in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3740024#M11398</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;ThisDrawing.ActiveLayer = ThisDrawing.Layers.Item(Combobox1.Text)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-. alfred -&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2012 17:26:17 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2012-12-19T17:26:17Z</dc:date>
    <item>
      <title>How to make the selected value in a combobox the current layer in the drawing</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3739899#M11397</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;Private Sub UserForm_Initialize()
 
 Dim layerColl As AcadLayers
 Dim entry As AcadLayer
 Dim LayList As String
 Set layerColl = ThisDrawing.Layers
 For Each entry In layerColl
    ComboBox1.AddItem entry.Name
 Next

 End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a form with a combobox. That combobox is filled up with all layers in a drawing. (see above)&lt;/P&gt;&lt;P&gt;Now I want to make the layer that I have selected (value) in the combobox the current layer in my drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i make it current?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks gr. László&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:09:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3739899#M11397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-19T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the selected value in a combobox the current layer in the drawin</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3740024#M11398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;ThisDrawing.ActiveLayer = ThisDrawing.Layers.Item(Combobox1.Text)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-. alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 17:26:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3740024#M11398</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-12-19T17:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the selected value in a combobox the current layer in the drawin</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3740499#M11399</link>
      <description>&lt;P&gt;Thank you Alfred!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was the item...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish you a nice christmas!&lt;/P&gt;&lt;P&gt;László&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 09:53:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-make-the-selected-value-in-a-combobox-the-current-layer/m-p/3740499#M11399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-20T09:53:58Z</dc:date>
    </item>
  </channel>
</rss>

