Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: 23 Mar 2006 02:03:24 -0800,    group: microsoft.public.word.word97vba        back       


Bookmarks   
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"
date: 23 Mar 2006 02:03:24 -0800   author:   Antonhino

Re: Bookmarks   
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"
>
date: Thu, 23 Mar 2006 14:04:20 -0000   author:   Tony Jollans My Forename at My Surname dot com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us