

# Send request to the server and receive response, with error handling! The image is read in as a PIL object and I can show it using img.show() just fine, but I am not sure what filetype this is or how to get VBA to accept it. The important bits of the script are below. UPDATE: I have created a Python script for getting the image file from a URL, but I still do not know how to get this image from the Python script into VBA, and from there into the Word document at the location of the cursor. Does anybody know of a way within VBA for Office 2011 to make this work, or barring that a workaround? I am trying to avoid writing the image file to the disk if possible. LinkToFile:=False, SaveWithDocument:=TrueĪfter doing some research, it looks like MS may have disabled this functionality in OSX as a "security risk". The current attempt is as follows, and works in Windows but crashes Word in OSX: FileName:=File_Name, _ Now I have to insert an image in my Word file from a URL that is built using the return of my external script.

I have overcome issues with VBA for OSX Word 2011 not allowing you to send POSTs to a server and have figured out how to return a string result from an external script. Word breaks the link between your document and the source application, but the information remains in your document.I am working on porting a project in Windows over to OSX. (If this option is not available, it means that Word doesn't think there are any links in the current document.) Word displays the Links dialog box. Click the Office button and then click Prepare.The steps are a bit different if you are using Word 2007: At the bottom-right side of the screen, under the Related Documents category, click Edit Links to Files.Make sure that Info is selected at the left side of the screen.You can break a link between your document and another application by following these steps if you are using Word 2010 or a later version: At some point in working with a document you may determine that an existing document link is no longer necessary.
