Word for Mac Macro
<p>I have Word for Mac 2011 on a MacBook with Yosemite 10.10.5. In Word I am trying to create a macro that will insert a file named <code>home.gif</code> into Word documents.  <code>home.gif</code> is in a directory called “List” which is a sub-directory of “Kindle” which is on my desktop (Desktop\Kindle\List).</p>

<p>The recorded steps are: Insert>>Photo>>Picture from file ...>>Desktop>> Kindle>>List>>home.gif>>Insert</p>

<p>Here is the result:</p>

<pre><code>Selection.InlineShapes.AddPicture filename:= _
     “/Users/macbookpro/Desktop/Kindle/List/home.gif”, LinkToFile=False._
     SaveWithDocument=True
Selection.InlineShapes.AddPicture filename:=”, LinkToFile:=False, _
     SaveWithDocument:=True   
</code></pre>

<p>On another forum, I read that the hyphens should be colons, so I changed it to this:</p>

<pre><code>Selection.InlineShapes.AddPicture filename:= _
     “Users.macbookpro.Desktop.Kindle.List.home.gif”, LinkToFile=False._
     SaveWithDocument=True
Selection.InlineShapes.AddPicture filename:=”, LinkToFile:=False, _
     saveWithDocument:=True   
</code></pre>

<p>That brought up: ““Can’t execute code in Break Mode”. </p>