Hi, Mujesh,
as far as I know there is no command to center a picture in a cell so we need to calculate the width for the cell minus the width of the picture and the divide by 2 and offset that value from the left border of the cell.
New code:
msoPicture is part of the msoType Collection. All these values all have a Constant as Name as well as a Long as Enumeration, and the numeric value for msoPicture is 13. You might look that up either in the Object Browser (it should be in the MSDN as well). Still I canīt explain why msoPicture doesnīt work when 13 will.
HTH,
Holger
Bookmarks