Hi.
I've been using the ShowPicD function, kindly provided here:
http://www.mrexcel.com/board2/viewt...order=asc&highlight=picture+function&start=0
Currently, i am typing a fixed width and height for the pictures to be placed. If either I accidently type in an incorrect ratio of width and height or the pictures are not all the same dimensions, it distorts the original picture and locks the aspect ratio.
Can anyone help me with some code to replace the width and height so that it captures and locks the aspect ratio of the original picture's dimensions first then, from a named cell on the worksheet (say "PicWidth" - this would be pixels or percentage) I can resize the pictures according to it's original dimensions if necessary?
Any help or leads is very appreciated.
Thanks.
I've been using the ShowPicD function, kindly provided here:
http://www.mrexcel.com/board2/viewt...order=asc&highlight=picture+function&start=0
Currently, i am typing a fixed width and height for the pictures to be placed. If either I accidently type in an incorrect ratio of width and height or the pictures are not all the same dimensions, it distorts the original picture and locks the aspect ratio.
Can anyone help me with some code to replace the width and height so that it captures and locks the aspect ratio of the original picture's dimensions first then, from a named cell on the worksheet (say "PicWidth" - this would be pixels or percentage) I can resize the pictures according to it's original dimensions if necessary?
Any help or leads is very appreciated.
Thanks.