+ Reply to Thread
Results 1 to 3 of 3

button erase dont erase an image inserted on an image control

  1. #1
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    button erase dont erase an image inserted on an image control

    Hello,


    i have an userform with an image control, that everytime i add a name , i can put an image too from a file where i have images stored.
    the problem is, i created an erase button to delete the image, but the button doesnt work.

    forgot to say the commands in english, sorry about that.

    button apagar its the button erase on the userform, and button inserir imagem its the button insert image
    Attached Files Attached Files
    Last edited by Nuno Neves; 03-11-2014 at 12:56 PM.

  2. #2
    Forum Contributor
    Join Date
    07-27-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    196

    Re: button erase dont erase an image inserted on an image control

    Your image is not on Sheet2, but on a form.
    Replace your command button code with this
    to remove the image from the image control.
    It worked for me.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: button erase dont erase an image inserted on an image control

    Thks, it worked well.
    i was little confused, since i tried some options and couldnt get there.
    Now i understood my mystake.

    Thks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Embed image to button using Image control
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2014, 05:37 PM
  2. [SOLVED] Use a button to control a macro that inserts an image into a shape or resets the shape
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 04:41 PM
  3. Displaying and Updating Image Dynamically (ActiveX Image Control?)
    By VTHokie11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2011, 10:57 AM
  4. Image Position within ActiveX Image Control
    By gerryiscool in forum Excel General
    Replies: 0
    Last Post: 09-07-2011, 02:08 AM
  5. Control WORD from VBA EXCEL. ┐How can I erase data?
    By internacio in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-08-2006, 09:35 AM

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