+ Reply to Thread
Results 1 to 2 of 2

copy photo

  1. #1
    Alvin Hansen
    Guest

    copy photo

    Hi

    Is there a way to make a macro there copy all photo from one sheet to
    another sheet if i don't know how many photos there are

    Regards alvin


  2. #2
    Dave Peterson
    Guest

    Re: copy photo

    Something like:

    Option Explicit
    Sub testme()
    Dim FWks As Worksheet
    Dim TWks As Worksheet
    Dim myPict As Picture

    Set FWks = Worksheets("sheet1")
    Set TWks = Worksheets("sheet2")

    For Each myPict In FWks.Pictures
    myPict.Copy
    TWks.Range(myPict.TopLeftCell.Address(0, 0)).PasteSpecial _
    Paste:=xlPasteAll
    Next myPict

    End Sub

    Alvin Hansen wrote:
    >
    > Hi
    >
    > Is there a way to make a macro there copy all photo from one sheet to
    > another sheet if i don't know how many photos there are
    >
    > Regards alvin


    --

    Dave Peterson

+ 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