#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photo in a sheet Alvin Hansen[_2_] Excel Programming 6 May 6th 10 09:19 PM
i can not copy and paste a photo in excel 2003 Daniel Lombard Excel Worksheet Functions 7 October 21st 07 08:05 PM
updating photo Joe William Links and Linking in Excel 2 July 30th 05 01:37 AM
Link to a photo. grupy dyskusyjne Links and Linking in Excel 7 June 2nd 05 08:18 PM
photo gallery prmanoel Excel Discussion (Misc queries) 2 March 11th 05 11:00 PM


All times are GMT +1. The time now is 03:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"