Word.....inserting photos

Associate
Joined
27 Apr 2008
Posts
430
Location
Somewhere near brum
Word..... annoying bug when inserting photos

I have a really annoying problem...

Previously when I was inserting photos into a word document it would always go back to the last file/folder location everytime I wen to insert one.

Now for some unknown and strange reason when I go to insert a photo it alsways goes into the same folder as the start point and I have to click through the folders to get to the pictures I want, I have to do this everytime which can become really annoying if I have lots of photos I want to insert.

And no I can put all the photos into that one folder I need to keep them sperate and memory space is tight.

Any ideas on how to return it to the previous working?? Its so bloody annoying lol
 
Last edited:
I don't know how to directly fix your problem but I often have to insert large numbers of pictures into word docs at work so I hacked together a macro to insert all the pictures from a folder.

Code:
Sub Insert_Pictures()
Dim sNextFile As String
Dim sPath As String
Dim mta99 As String

sPath = InputBox("Enter the full path")

sNextFile = Dir$(sPath)
While sNextFile <> " "
    mta99 = sPath & sNextFile
    Selection.InlineShapes.AddPicture FileName:=mta99, _
        LinkToFile:=False, SaveWithDocument:=True
    Selection.TypeParagraph
    sNextFile = Dir$
Wend

End Sub

It works, its fit for purpose but its far from elegant! :o I've actually chopped out a lot of simple code that formats the pictures in a standard office form but this is the bit that does the leg work and saves my frustrations.

If any of the macro wizzes out there could suggest how I invoke a file browser rather than having to copy and paste the address and/or how to make it end gracefully i'd be really grateful :D
 
If any of the macro wizzes out there could suggest how I invoke a file browser rather than having to copy and paste the address and/or how to make it end gracefully i'd be really grateful :D
You'd either need the thread moved to HGP or start one there yourself. :)
 
Back
Top Bottom