Page Object

M

mikeFin

Hello!

I would like to set (through VBA) the Layer-Cells in the PageObject.
I am interested in setting the column Visible of a Layer I have to true or
false.

Of course I can make the Layers visible or invisible with "View->Layer
properties", but I have created a CommandBar and want for some reason to make
some layers visible/invisible from there.

If I wanted to make a ShapeData invisible, I would set it like this:

myShape.Cells("Prop.myShapeData1.Invisible").Formula = "=False"


How can I do this for a Layer (the 4th layer for example) of the PageObject ?
Perhaps something like this(?):

ActiveDocument.Pages(1).Cells("Layers.4.Visible").Formula= 0

Thanks for any help!
 
M

mikeFin

Many many thanks for for helping out.
And even more thanks for helping that fast!! That really makes the
dirfference!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top