Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default PictureBox in Excel VBA

I have an application in vb6 which uses picturebox control. I would
like to leverage the same functionality in excel, but could not find
the picturebox control or any equivalent one vba. Is there any work
around?
Thanks in advance, Binesh

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default PictureBox in Excel VBA


Try the IMAGE control from msforms library.
less functionality, and i dont know what you exactly want to do ,
but it'll probably be sufficient.


Picturebox is an ActiveX control,so you could use the picturebox in VBA
too. however:
your users must have a licensed version of the control
on their machine. VBA is uncompiled so a "designtime" license is
required.
Since most users will not have vb or office developer license
this will not be the most practical solution.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


wrote :

I have an application in vb6 which uses picturebox control. I would
like to leverage the same functionality in excel, but could not find
the picturebox control or any equivalent one vba. Is there any work
around?
Thanks in advance, Binesh

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default PictureBox in Excel VBA


Hello Binesh,

VBA doesn't have a PictureBox control like VB. If the Picture is a BM
file you could copy it to a Shape Object. If your pictire maight be
IMG, JPG, BMP, ICO, or CUR, then use an Image Control from VBA'
Control ToolBox.

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=38046

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default PictureBox in Excel VBA

Thanks Ross and KeepITCool for the information.
In fact, what I really require is to draw a 2d cross section based on
geometric inputs on a canvas. Right Now, I am using shapes in
Worksheet(which serves the purpose, Not efficient,though) for this.
Just wondering if there is better alternative?

Binesh

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
How do I insert a PictureBox into Excel? Evanbron Excel Discussion (Misc queries) 3 October 25th 05 02:16 AM
PictureBox control in VBA Excel form? Thomas Wieser Excel Programming 1 April 9th 04 09:15 PM


All times are GMT +1. The time now is 03:04 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"