Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Nov 2010
    Location
    London
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    I’ve got a bit of code below that works fine in Word 2003 but does nothing in Word 2010.

    In Word 2010 autotext entries are BuidingBlockEntries but there does not appear to be a an Organizer object for them and it’s still wdOrganizerObjectAutoText.

    In Word 2010 the code does not cause an error it just does nothing.

    Does anyone if there is an equivalent in Word 2010?

    Application.OrganizerRename Source:=strTemplatePath, Name:="Test1", _
    NewName:="Test2", Object:=wdOrganizerObjectAutoText

    Thanks

    Russell

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,549
    Thanks
    3
    Thanked 149 Times in 142 Posts
    Try this instead

    ActiveDocument.AttachedTemplate.BuildingBlockEntri es("Test1").Name = "Test2"
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    New Lounger
    Join Date
    Nov 2010
    Location
    London
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Andrew

    That's great, much simpler than Word 2003.

    Thanks

    Russell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •