How to add picture at bottom of a page

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

wango

Thread Starter
Joined
Nov 13, 2001
Messages
74
Does anyone know how to add a picture at the end og and document (instead of the beginning). I have tried the tricks below and none seems to work.



Sub InsertPic()'' BarCode_Writer Macro' Macro created 11/13/2001 by mitikavumam''ActiveDocument.Select Const iTitle = "Open to End" Dim fName as string Dim lngRetVal as Long With Application.Dialogs(wdDialogFileOpen) lngRetVal = .Display fName = .Name End With If lngRetVal <> -1 then MsgBox prompt:="Operation Canceled", Title:=iTitle Exit Sub End If ' do not open the file 'Documents.Open FileName:=fName 'Selection.EndKey Unit:=wdStory MsgBox prompt:="document '" & fName & "' opened.", _ Title:=iTitle & " Complete" ' possibility 1 ' try the start of a document 'Select the top of the ddocument ActiveDocument.Bookmarks("\EndOfDoc").Select set oRange = _ ActiveDocument.Range(ActiveDocument.Bookmarks("\EndofDoc").Range.Start, _ End:=ActiveDocument.Bookmarks("\EndofDoc").Range.End) '(FileName:="C:\Program Files\Microsoft Office\Clipart\Popular\AGREE.WMF", 'ActiveDocument.Selection.Shapes.AddPicture(FileName:=fName, _ 'LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, _ 'Left:=0, Top:=0, Width:=100, Height:=100).Select ActiveDocument.Shapes.AddPicture (fName) 'LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, _ 'Left:=0, Top:=0, Width:=100, Height:=100).Select 'ExcelWorksheet1.ExcelWorksheet.Shapes.AddPicture( 'C:\MyBitmap.bmp', // filename 'msoFalse, // LinkToFile (true = make link to file, false = make copy of the file in document) 'msoCTrue, // SaveWithDocument (must be true if LinkToFile is false) '10, // Left '10, // Top '300, // Width '300); // Height End Sub


:confused:
 
Joined
Jun 27, 2000
Messages
6,832
Put it on the clipboard and paste it to the bottom of a Word document – I do it all the time. Make sure you hit “Enter” twice before pasting and it will go below your test. You can then move or resize the image as you please.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top