Author Topic: Make Inserted Layout current  (Read 1504 times)

0 Members and 1 Guest are viewing this topic.

ML

  • Guest
Make Inserted Layout current
« on: April 18, 2005, 10:05:54 AM »
I have created a bunch of dwt files. I am alos using insert from Template for some things. I have noticed that when I insert from a template, that layout does not become active by default.
I was wondering if anyone knew a quick vbastmt that I could use to make this happen? I believe it has to be in The layouts collection but I have had no luck so far


Thank you

Mark

hendie

  • Guest
Make Inserted Layout current
« Reply #1 on: April 18, 2005, 11:50:29 AM »
Code: [Select]
ThisDrawing.ActiveLayout = ThisDrawing.Layouts(My-New-Layout)

sorry haven't got time to stop... up to my eyes in it :evil:

ML

  • Guest
Make Inserted Layout current
« Reply #2 on: April 18, 2005, 12:34:37 PM »
Hey Hendie,

I was thinking something like

ThisDrawing.ActiveLayout = ThisDrawing.Layouts(count -1)

I believe that would grab the last inserted layout?

Mark