+ Reply to Thread
Results 1 to 4 of 4

Macro to Remove Graphic

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    11

    Macro to Remove Graphic

    When in Macro record mode, I click an image that is pasted into a spreadsheet and the macro does not record the activity. I am wanting to learn how to remove the graphic from the sheet. The graphic is a screen capture screenshot using Gadwin Printscreen. I wish to remove it via macro. How is this done?

  2. #2
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Macro to Remove Graphic

    Hello

    If the image is always called the same thing each time then this line of code should work (Changnig "Picture 1" to what ever the image is called)

    Please Login or Register  to view this content.
    If you want to remove all images then I found this script on MR Excel after a quick google. http://www.mrexcel.com/archive/VBA/529.html

    Please Login or Register  to view this content.
    Hope this helps

    Jim
    Last edited by JimmyA; 09-21-2010 at 05:47 PM. Reason: add link to site containg code

  3. #3
    Registered User
    Join Date
    09-10-2010
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Macro to Remove Graphic

    The tester() sub worked perfectly. Thank you!

  4. #4
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Macro to Remove Graphic

    Hi

    To delete all the picture objects in a worksheet, execute the statement:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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