+ Reply to Thread
Results 1 to 4 of 4

PictureBox in Excel VBA

  1. #1

    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. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Binesh,

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

    Sincerely,
    Leith Ross

  3. #3
    keepITcool
    Guest

    Re: 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


    [email protected] 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


  4. #4

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1