Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-13-2012, 06:58 AM
Venky62 Venky62 is offline copy a range including shapes Windows 7 64bit copy a range including shapes Office 2010 32bit
Advanced Beginner
 
Join Date: Jul 2012
Posts: 58
Venky62 is on a distinguished road
Default

Okay, here is the Excel file with code. If you click on the Macro symbol in the Quick access Toolbar, it will transfer the data from Sheet 1 to Sheet 2 - the data in the specified range and all shapes. I was able to find a way so that the shapes retain their original position.

I had a lot of problem trying to solve the copy and paste methods that this code involves. Looks like there is a bug in Excel when it comes to copying and pasting shapes. But eventually the code is running consistently. So let me know if you have any problems.

In your own worksheet, change the range as needed (instead of A1:C5, enter A13:FU45 (or whatever is the range). If the source worksheet is "Sheet1" and destination worksheet is "Sheet2", then no need to make any more changes, else, you need to make those changes too.

To see the code in this sample file, press Alt+F11 and double click on "This workbook" in the Project Explorer window.
Attached Files
File Type: zip Sample.zip (103.9 KB, 29 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Email with VBA while also including formatting tylerg11 Outlook 0 07-27-2012 10:49 AM
copy a range including shapes Copy & Paste Shapes & Motion Paths from 1 Slide Size to Another buckaroobanzai PowerPoint 1 06-08-2012 05:32 AM
Loop through folder of workbooks and copy range to other workbook Snvlsfoal Excel Programming 3 07-29-2011 05:55 AM
counting occurences of a value in a range but not including 0's nor blanks virsojour Excel 0 07-05-2010 01:34 AM
Copy plain text message including sender, recipient, and subject distancesprinter Outlook 0 01-22-2010 12:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft