Skip to main content
Inspiring
November 5, 2009
Question

[CS3-VBA] Why message "request failed..."?

  • November 5, 2009
  • 1 reply
  • 572 views

I'm tryin to make global change by font options:

myInd.FindTextPreferences = idNothingEnum.idNothing

myInd.ChangeTextPreferences = idNothingEnum.idNothing
myInd.FindTextPreferences.AppliedFont = "Times New Roman"
myInd.FindTextPreferences.PointSize = 10
myInd.FindTextPreferences.FillColor = myDoc.Swatches.Item("Dark Blue") ' in this line VBA message:

"Reqiest failed because object is from a different document or workspace"

myInd.ChangeTextPreferences.AppliedCharacterStyle = myDoc.CharacterStyles.Item("myStyle")

What does it mean? Which doc? Which workspace?

Thanks for help.

This topic has been closed for replies.

1 reply

Robert at ID-Tasker
Legend
November 5, 2009

myInd.FindTextPreferences.FillColor = myDoc.Swatches.Item("Dark Blue") ' in this line VBA message:

"Reqiest failed because object is from a different document or workspac"

you should find answer on forum (sorry, but I don't remember when was discussion about this) but try to replace SWATCHES with COLORS

robin

www.adobescripts.co.uk

BeliakovAuthor
Inspiring
November 5, 2009

"Colors" give the same message...

OK. I'll try to find smth in forum

Thanks, anyway