Insert Autotext - returned range depends on formatting? 
Author Message
 Insert Autotext - returned range depends on formatting?

Hi all,

in my code, I am using a line like

  atentry.Insert Where := myrange, RichText := True

to insert a specific autotext. However, the range of myrange after the
call seems to depend on whether the autotext has formatting stored in
it or not: if the autotext has no formatting, the end of myrange is
(in my view, correctly) at the end of the inserted text, and if
there's formatting, the end of the range stays at where it was before
the call (or something similar...???) Could somebody explain this
behaviour and how to handle with it, so the result is predictable?

Thank you for your help in advance.


Fri, 04 Mar 2005 22:54:22 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problem with format on insert autotext, and in inserting elements with form fields

2. Autotext Insert in Cell Using Range

3. Inserting AutoText in Header and retaining formatting

4. Inserting Autotext using VBA - loses formatting and styles

5. Macro that inserts Autotext loses styles of Autotext entry

6. Insert Text into field depending on dropdownlistbox

7. Inserting AutoText from a Global Template

8. Insert autotext with VBa

9. Insert Autotext Entries in a Document

10. Word XP- Insert Autotext- Tables

11. Insert AutoText in Footer via Macro

12. If true Insert Autotext


Powered by phpBB® Forum Software