Acad2002: make a layout current
Hi guys,
my selfconfidence sunk below zero, 'cause I'm not able to activate a different layout in VBA.
The help file points to the code "ActiveLayout" but I can't make it work.
I use the code
[VBA]ThisDrawing.ActiveLayout = "LayoutA4"[/VBA]
But get an Compile error, Type mismatch
And yes... there is a layout called LayoutA4
Please, can someone help me out?
Thx in advance,
Sandieslover
[Solved] Acad2002: make a layout current
Thanx guys!:beerchug:
This works like a charm for me too.
As the help file only pointed me into the direction of the "activelayout" command, the nearest example I could find was the "Make a layer current" and this piece of code just used the layername.
Translating this to my layout problem I only thought of the layout name, instead of the whole Thisdrawing..... code.:banghead:
Thanx for your time and efforts,
Kind regards,
Sandieslover