LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Macro to Copy/Paste Multiple images

Hi,

Am Thu, 9 May 2013 18:12:49 +0100 schrieb lfullam1:

I have 7 pictures on one worksheet that I want to copy and paste on to
another worksheet, into various cells. Each image will go into only one
cell. The code I have is as follows:


try:
Sub myCopy()
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim shp As Shape

j = 1
k = 202
Application.ScreenUpdating = False
With Sheets("info")
For i = 2 To 7
.Shapes("Picture " & i).Copy
Sheets("bat").Paste
Next
End With
With Sheets("bat")
For i = 2 To 7
.Shapes("Picture " & i).Top = .Cells(k, j).Top
.Shapes("Picture " & i).Left = .Cells(k, j).Left
If i Mod 2 = 0 Then
j = j + 3
Else
j = 1
k = k + 7
End If
Next
End With
Application.ScreenUpdating = True
End Sub


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
 
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
Copy & paste macro for multiple worksheets tomhelle Excel Discussion (Misc queries) 8 March 15th 10 06:21 PM
Multiple worksheet Copy Paste Macro danno-c[_2_] Excel Discussion (Misc queries) 1 September 21st 09 05:37 PM
Copy and paste images Mark Ivey Excel Discussion (Misc queries) 1 December 5th 06 03:33 AM
Excel charts copy / paste crops the images Neil J Mansfield Charts and Charting in Excel 0 April 10th 06 04:51 PM
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro Steven Excel Programming 1 October 17th 05 08:56 AM


All times are GMT +1. The time now is 05:34 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"