Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default LoadPicture(FileName) with size?

I have the following line in my VBA code:

Image1.Picture = LoadPicture(FileName)

....and it works fine :-)


But, since the picture is being shown in a UserForm, I would like to make
sure that it gets loaded in the right size, so I use:

Image1.Picture = LoadPicture(FileName), 400, 300

....but for some reason this goes wrong?!?

Even that the LoadPicture have both [widthDesired As Long] and
[heightDesired As Long] options?

What am I doing wrong???


TIA,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LoadPicture compile error Jim[_7_] Excel Programming 1 December 20th 07 11:17 PM
Loadpicture - check if file exists t0ny Excel Programming 3 December 27th 06 04:01 PM
LoadPicture for a ControlButton help micmacuk Excel Programming 7 May 30th 06 08:44 PM
conditional compile for LoadPicture? RB Smissaert Excel Programming 2 March 27th 06 04:37 PM
LoadPicture - how to keep .jpg compression No Name Excel Programming 0 May 25th 04 08:14 AM


All times are GMT +1. The time now is 01:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"