View Single Post
 
Old 07-03-2017, 10:41 PM
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 Word 2016 command name

I'm having trouble with an old macro that fails in Word 2016 and can't seem to find the new command name for this code.
CommandBars.ExecuteMso ("PictureChange")

This is the command that you see when you right click an image in Word and choose Change Picture > From a File

I'm using this line of code as part of a larger macro that allows the user to replace a graphic and crop the replacement to the same dimensions.

Does anyone know an alternate way to achieve this in Word 2016 when the inline shape is of type wdInlineShapePicture?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote