Question
Referencing a layer in a set in VB
I can write text on a layer if it's on the top level. But I can't find the same layer if it's nested in a set.
This works:
Dim docRef
docRef.ActiveLayer = docRef.Layers("topLine")
Set artLayerRef = docRef.ActiveLayer
Set textItemRef = artLayerRef.TextItem
textItemRef.Contents = "blah blah"
If I wanted to write to a layer called "topLine" in the set "mainSet" how would I do this?
TIA
Steve
This works:
Dim docRef
docRef.ActiveLayer = docRef.Layers("topLine")
Set artLayerRef = docRef.ActiveLayer
Set textItemRef = artLayerRef.TextItem
textItemRef.Contents = "blah blah"
If I wanted to write to a layer called "topLine" in the set "mainSet" how would I do this?
TIA
Steve