Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an excel sheet that inserts pictures store in folder. Just before
inserting the picture I need to know wether the picture orientation is landscape or portrait. How can I know that without inserting the actual picture? This is the code I use; it determines the pic orientation AFTER inserting the picture. I would like to avoid inserting the picture; I just need the orientation. Set pic = xlApp.ActiveSheet.Pictures.Insert(PictureName) If pic.ShapeRange.height <= pic.ShapeRange.width Then PicOrientation = "Landscape" Else PicOrientation = "Portrait" End If How can I accomplish this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Connect a number to a picture bank and import that picture to exce | Excel Discussion (Misc queries) | |||
Pagesetup.Orientation need VBA routine to "Best Guess" Orientation | Excel Discussion (Misc queries) | |||
Delete earlier 'Picture' version when new picture copied in | Excel Programming | |||
how do I insert picture into cell so vlookup can return picture? | Excel Worksheet Functions | |||
insert a picture in to a comment but picture not save on hard disk | Excel Discussion (Misc queries) |