• Graphics on multiple sheets (Excel2k SR1a)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Graphics on multiple sheets (Excel2k SR1a)

    • This topic has 2 replies, 2 voices, and was last updated 23 years ago.
    Author
    Topic
    #370205

    Hi all, I am trying to work out how to insert a graphic onto many different sheets (ie a logo of some kind) by only inserting the graphic (logo) once ie into a setup sheet. On the target sheets I want to be able to set the size of the logo as required but I need to reference the graphic from the setup sheet.
    Any ideas on how I can do this would be greatly appreciated!
    Thanks
    Brian.

    Viewing 0 reply threads
    Author
    Replies
    • #585050

      lightbulb This is an Excel97 code fragment that may give you some ideas.
      “Picture 1” is the Excel shape object. In my case there was only one shape object; a picture.

      Sub PictureResizeAndCopy()

      On Error GoTo NoPicture
      ActiveSheet.Shapes(“Picture 1”).Select
      Selection.ShapeRange.ScaleHeight 0.5, True change picture size
      Selection.ShapeRange.ScaleWidth 0.5, True
      Selection.Copy
      ||||||<———– Put the destination sheet code here
      Application.Goto Reference:=”R1C1″ This is destination position of logo
      ActiveSheet.Paste

      NoPicture:

      End Sub

      HTH cheers

      • #585428

        Thanks!
        This looks like it will give me what I need as a starting point!
        Regards
        Brian.

    Viewing 0 reply threads
    Reply To: Graphics on multiple sheets (Excel2k SR1a)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: