<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346442#M97809</link>
    <description>My guess is that it may be failing because the form is&lt;BR /&gt;
active. You might want to try closing the form first,&lt;BR /&gt;
before trying to make the layout active.&lt;BR /&gt;
&lt;BR /&gt;
Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Tony,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; That doesn't want to work either.  Here's my code.  Its inside a form that&lt;BR /&gt;
&amp;gt; has a textbox&lt;BR /&gt;
&amp;gt; and two buttons&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Private Sub CommandButton1_Click()&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Unload Me&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks for the help&lt;BR /&gt;
&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Tony Tanzillo wrote in message &amp;lt;385675E6.D27F80DE@worldnet.att.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt;Try posting the code you're having the problem with,&lt;BR /&gt;
&amp;gt; &amp;gt;as it's hard for someone to guess what it does.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Otherwise, this should do it:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; I'm having a hard time adding a layout then making the new layout&lt;BR /&gt;
&amp;gt; current.&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; I can add the new one just fine, but I can't get it to become active&lt;BR /&gt;
&amp;gt; using&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; code.&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; Thanx in advance&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;--&lt;BR /&gt;
&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt; &amp;gt;/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt; &amp;gt;/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt; &amp;gt;/* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt; &amp;gt;/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt; &amp;gt;/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
    <pubDate>Tue, 14 Dec 1999 17:28:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>1999-12-14T17:28:14Z</dc:date>
    <item>
      <title>More help needed on Layouts</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346438#M97805</link>
      <description>I'm having a hard time adding a layout then making the new layout current.&lt;BR /&gt;
I can add the new one just fine, but I can't get it to become active using&lt;BR /&gt;
code.&lt;BR /&gt;
&lt;BR /&gt;
Thanx in advance&lt;BR /&gt;
Michael Browne</description>
      <pubDate>Tue, 14 Dec 1999 15:24:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346438#M97805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: More help needed on Layouts</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346439#M97806</link>
      <description>Try posting the code you're having the problem with,&lt;BR /&gt;
as it's hard for someone to guess what it does.&lt;BR /&gt;
&lt;BR /&gt;
Otherwise, this should do it:&lt;BR /&gt;
&lt;BR /&gt;
set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&lt;BR /&gt;
Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I'm having a hard time adding a layout then making the new layout current.&lt;BR /&gt;
&amp;gt; I can add the new one just fine, but I can't get it to become active using&lt;BR /&gt;
&amp;gt; code.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanx in advance&lt;BR /&gt;
&amp;gt; Michael Browne&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Tue, 14 Dec 1999 16:52:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346439#M97806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T16:52:54Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346440#M97807</link>
      <description>Tony,&lt;BR /&gt;
&lt;BR /&gt;
That doesn't want to work either.  Here's my code.  Its inside a form that&lt;BR /&gt;
has a textbox&lt;BR /&gt;
and two buttons&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton1_Click()&lt;BR /&gt;
&lt;BR /&gt;
Set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&lt;BR /&gt;
Unload Me&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help&lt;BR /&gt;
Michael Browne&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo wrote in message &amp;lt;385675E6.D27F80DE@worldnet.att.net&amp;gt;...&lt;BR /&gt;
&amp;gt;Try posting the code you're having the problem with,&lt;BR /&gt;
&amp;gt;as it's hard for someone to guess what it does.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Otherwise, this should do it:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Michael Browne wrote:&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; I'm having a hard time adding a layout then making the new layout&lt;BR /&gt;
current.&lt;BR /&gt;
&amp;gt;&amp;gt; I can add the new one just fine, but I can't get it to become active&lt;BR /&gt;
using&lt;BR /&gt;
&amp;gt;&amp;gt; code.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Thanx in advance&lt;BR /&gt;
&amp;gt;&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;--&lt;BR /&gt;
&amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt;/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt;/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt;/* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt;/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt;/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
&amp;gt;/*********************************************************/</description>
      <pubDate>Tue, 14 Dec 1999 17:24:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346440#M97807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346441#M97808</link>
      <description>Tony's code worked just fine for me. Are you getting an error message?&lt;BR /&gt;
&lt;BR /&gt;
"Michael Browne" &lt;MBROWNE&gt; wrote in message&lt;BR /&gt;
news:835ue6$e8q13@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Tony,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; That doesn't want to work either.  Here's my code.  Its inside a form that&lt;BR /&gt;
&amp;gt; has a textbox&lt;BR /&gt;
&amp;gt; and two buttons&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Private Sub CommandButton1_Click()&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Unload Me&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the help&lt;BR /&gt;
&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Tony Tanzillo wrote in message &amp;lt;385675E6.D27F80DE@worldnet.att.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt;Try posting the code you're having the problem with,&lt;BR /&gt;
&amp;gt; &amp;gt;as it's hard for someone to guess what it does.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Otherwise, this should do it:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; I'm having a hard time adding a layout then making the new layout&lt;BR /&gt;
&amp;gt; current.&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; I can add the new one just fine, but I can't get it to become active&lt;BR /&gt;
&amp;gt; using&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; code.&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; Thanx in advance&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;--&lt;BR /&gt;
&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt; &amp;gt;/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt; &amp;gt;/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt; &amp;gt;/* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt; &amp;gt;/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt; &amp;gt;/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MBROWNE&gt;</description>
      <pubDate>Tue, 14 Dec 1999 17:28:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346441#M97808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T17:28:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346442#M97809</link>
      <description>My guess is that it may be failing because the form is&lt;BR /&gt;
active. You might want to try closing the form first,&lt;BR /&gt;
before trying to make the layout active.&lt;BR /&gt;
&lt;BR /&gt;
Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Tony,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; That doesn't want to work either.  Here's my code.  Its inside a form that&lt;BR /&gt;
&amp;gt; has a textbox&lt;BR /&gt;
&amp;gt; and two buttons&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Private Sub CommandButton1_Click()&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Unload Me&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks for the help&lt;BR /&gt;
&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Tony Tanzillo wrote in message &amp;lt;385675E6.D27F80DE@worldnet.att.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt;Try posting the code you're having the problem with,&lt;BR /&gt;
&amp;gt; &amp;gt;as it's hard for someone to guess what it does.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Otherwise, this should do it:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; I'm having a hard time adding a layout then making the new layout&lt;BR /&gt;
&amp;gt; current.&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; I can add the new one just fine, but I can't get it to become active&lt;BR /&gt;
&amp;gt; using&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; code.&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; Thanx in advance&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;--&lt;BR /&gt;
&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt; &amp;gt;/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt; &amp;gt;/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt; &amp;gt;/* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt; &amp;gt;/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt; &amp;gt;/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Tue, 14 Dec 1999 17:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346442#M97809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346443#M97810</link>
      <description>It still does not work.  The error I keep getting is:&lt;BR /&gt;
&lt;BR /&gt;
Run-time error '438':&lt;BR /&gt;
Object doesn't support this property or method&lt;BR /&gt;
&lt;BR /&gt;
It does create the new layout but it just won't switch to it&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo wrote in message &amp;lt;38567E2E.63B0C244@worldnet.att.net&amp;gt;...&lt;BR /&gt;
&amp;gt;My guess is that it may be failing because the form is&lt;BR /&gt;
&amp;gt;active. You might want to try closing the form first,&lt;BR /&gt;
&amp;gt;before trying to make the layout active.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Michael Browne wrote:&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Tony,&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; That doesn't want to work either.  Here's my code.  Its inside a form&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt;&amp;gt; has a textbox&lt;BR /&gt;
&amp;gt;&amp;gt; and two buttons&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Private Sub CommandButton1_Click()&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Unload Me&lt;BR /&gt;
&amp;gt;&amp;gt; End Sub&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Thanks for the help&lt;BR /&gt;
&amp;gt;&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Tony Tanzillo wrote in message &amp;lt;385675E6.D27F80DE@worldnet.att.net&amp;gt;...&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;Try posting the code you're having the problem with,&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;as it's hard for someone to guess what it does.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;Otherwise, this should do it:&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;set ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;Michael Browne wrote:&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; I'm having a hard time adding a layout then making the new layout&lt;BR /&gt;
&amp;gt;&amp;gt; current.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; I can add the new one just fine, but I can't get it to become active&lt;BR /&gt;
&amp;gt;&amp;gt; using&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; code.&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Thanx in advance&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Michael Browne&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;--&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
&amp;gt;&amp;gt; &amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;--&lt;BR /&gt;
&amp;gt;/*********************************************************/&lt;BR /&gt;
&amp;gt;/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt;/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt;/* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt;/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt;/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
&amp;gt;/*********************************************************/</description>
      <pubDate>Tue, 14 Dec 1999 20:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346443#M97810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T20:09:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346444#M97811</link>
      <description>Eliminate the 'Set' before ThisDrawing.ActiveLayout and&lt;BR /&gt;
it will work:&lt;BR /&gt;
&lt;BR /&gt;
ThisDrawing.ActiveLayout = Thisdrawing.Layouts.Add("New Layout")&lt;BR /&gt;
&lt;BR /&gt;
Michael Browne wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; It still does not work.  The error I keep getting is:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Run-time error '438':&lt;BR /&gt;
&amp;gt; Object doesn't support this property or method&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; It does create the new layout but it just won't switch to it&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Tue, 14 Dec 1999 21:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/more-help-needed-on-layouts/m-p/346444#M97811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-12-14T21:21:31Z</dc:date>
    </item>
  </channel>
</rss>

