This content has been marked as final.
Show 1 reply
-
1. Re: CS4 VBS Groups
(Olav_Kvern) Dec 11, 2008 11:06 AM (in response to Samuli75)Hi Samuli Seppala,
Instead of:
Set myText = myInDesign.Selection.Item(1).Texts.Item(1)
Use:
Set myTextFrame = myInDesign.Selection.Item(1).TextFrames.Item(1)
Set myText = myTextFrame.Texts.Item(1)
The objects inside a group are page items--Text is not a page item, but TextFrame is. If you look at the Group object, you'll see that it can contain TextFrames, but not Texts.
Thanks,
Ole
