+ Reply to Thread
Results 1 to 5 of 5

Macro to clear picture from AxtiveX Image

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Macro to clear picture from AxtiveX Image

    I am trying to creat a macro to clear the picture out of the ActiveX Image box. This is my code for inserting the picture. I have 22 of these boxes and the code is the same for each excet each one replaces the 1 next to image with 2, 3, 4, 5 or on and so forth. I would like one macro to erase all pictures if possible.

    Any help would be greatly appriciated! Thanks!


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to clear picture from AxtiveX Image

    This will clear Image1.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Macro to clear picture from AxtiveX Image

    I tried using that cod in a macro and got a run time error '424' Object required. There is an image in the box. Any suggestions?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to clear picture from AxtiveX Image

    That does work, where do you have the code?

    Is it in the same module as the Image1_DblClick code?

  5. #5
    Registered User
    Join Date
    11-29-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Macro to clear picture from AxtiveX Image

    Thank you!!! I had it in a seperate module. Have a great day!

+ 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