2 Replies Latest reply on Nov 5, 2009 9:01 AM by Beliakov

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

    Beliakov Level 1

      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.