TheSwamp

Code Red => VB(A) => Topic started by: ML on April 18, 2005, 10:05:54 AM

Title: Make Inserted Layout current
Post by: ML 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
Title: Make Inserted Layout current
Post by: hendie 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:
Title: Make Inserted Layout current
Post by: ML 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