Hello, >From VBA, I need to do this: 1. insert a text "Screen1" 2. insert a text "Appendix" 3. insert two pictures after "Screen1" 4. insert a table after "Appendix" I have tried : Selection.TypeText ("Screen") ActiveDocument.Bookmarks.Add "ScreenBmk", Selection.Range Selection.TypeText ("Appendix") ActiveDocument.Bookmarks.Add "AppendixBmk", Selection.Range Selection.GoTo what:=wdGoToBookmark, Name:="ScreenBmk" Selection.TypeText ("Table") -->insert picture Selection.GoTo what:=wdGoToBookmark, Name:="AppendixBmk" --> insert table But only the text "table is written before "Appendix", my pictures are after "Appendix"
In Word 97 all pictures are pasted into the drawing layer (as 'Shapes') and you may need to convert them to 'InlineShapes' to move them to the text layer to get them where you want but it's difficult to advise further as you've left out how you insert the picture(s). -- Enjoy, Tony "Antonhino" wrote in message news:1143108204.175786.221740@i39g2000cwa.googlegroups.com... > Hello, > > >From VBA, I need to do this: > > 1. insert a text "Screen1" > 2. insert a text "Appendix" > 3. insert two pictures after "Screen1" > 4. insert a table after "Appendix" > > > I have tried : > > Selection.TypeText ("Screen") > ActiveDocument.Bookmarks.Add "ScreenBmk", Selection.Range > Selection.TypeText ("Appendix") > ActiveDocument.Bookmarks.Add "AppendixBmk", Selection.Range > Selection.GoTo what:=wdGoToBookmark, Name:="ScreenBmk" > Selection.TypeText ("Table") > -->insert picture > Selection.GoTo what:=wdGoToBookmark, Name:="AppendixBmk" > --> insert table > > But only the text "table is written before "Appendix", my pictures are > after "Appendix" >