View Single Post
 
Old 07-04-2017, 05:22 AM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Thanks Graham but I need to include a prompt to allow the user to choose an image to do the replacement with. It was all so easy with that line previously with Word 2007, 2010, 2013 and some versions of 2016 but it seems to fall over on a few 2016 machines now and I can't work out why it doesn't work anymore. The Office2016FluentUserInterfaceControlIdentifiers downloaded from MS lists PictureChange as a command but apparently it doesn't work in all versions of Word 2016

The rest of the code works fine and crops the replacement image if the aspect ratio doesn't match the graphic it is replacing.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote