+ Reply to Thread
Results 1 to 4 of 4

Picture loading in image problem

  1. #1
    Forum Contributor
    Join Date
    08-01-2007
    Posts
    110

    Picture loading in image problem

    Hi there Everyone! I have a very basic and simple macro which won't work. (I am just starting to lear VBA).

    I have an excel worksheet and an imgFace image on it. All I want is that when I start the macro a picture to be displayed on this image (face.bmp)

    When I run the macro I get an error message saying: "Run time error '424': Object required". Please tell me what am I doing wrong.

    Please Login or Register  to view this content.



    Thank you in advance!

    Thanks

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What do you mean by imgFace?

    Try using an Image Control from the Controls ToolBox
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    08-01-2007
    Posts
    110
    "imgFace" is the name of the image.

  4. #4
    Forum Contributor
    Join Date
    07-01-2008
    Location
    Cincinnati, OH
    Posts
    150
    If your code is located outside of the sheet containing the image control, make sure you qualify the image object by providing information about its parent.

    Sheet1.imgFace.Picture = ...
    or
    WorkSheets("Sheet1").imgFace.Picture = ...
    or
    Set Sheet1.imgFace.Picture = ...
    or
    Set WorkSheets("Sheet1").imgFace.Picture = ...

+ 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