Macro to input picture in cell and also delete picture

  • Hi There


    I am working on a calender. Now I want to to put small pictures that shows the size of the moon. So how can I use VBA to input pictures in specified cells??
    I also want to know how I can get VBA to delete the pictures when I change the year of the calander.


    I do hope that it's possible to do these things.


    Thank you in advance.

  • Re: Macro to input picture in cell and also delete picture


    Hi,


    Did you get an answer to your question? I need to know how to get the picture in the cell. I'm not worried about using a macro to do it.


    Any help will be appreciated.

  • Re: Macro to input picture in cell and also delete picture


    Code
    ActiveSheet.Pictures.Insert("C:\test.JPG").Select

    [COLOR="Purple"]Eternity is a terrible thought. I mean, where's it going to end??[/COLOR]

  • Re: Macro to input picture in cell and also delete picture


    Hi Fendore


    Thank you for your reply. The picture have to be put in a cell that have been decribe in the macro.


    Also when we start a new year then the picture have to be deleted again.


    To explain a little bit more. Is't the pictures of the moon I want to put in the calender. Pictures that show if the moon is full or new.


    Alring

  • Re: Macro to input picture in cell and also delete picture


    [COLOR="Purple"]Eternity is a terrible thought. I mean, where's it going to end??[/COLOR]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!