Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Copying an entire sheet from 2007 to 2003

There are lots of solution. Assuming you have an entry in cell A1, you can
do (untested)

Range("A1").select
ActiveSheet.Usedrange.copy
'code to change to destination workbook/sheet and select cell A1
Activesheet.paste

You can of course eliminate the selects, but sometimes it is easier <grin

If you just want values and formats, you can do a pastespecial and specify
them instead. If you need column widths, you can copy the widths
indvidually by looping through the columns.

Robert Flanagan
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"XP" wrote in message
...
Using Office 2007 with Windows XP; working in compatibility mode for 2003;

We have a legacy program in which a series of sheets are copied from an
Office 2007 file into Office 2003 Files. However, we find that this cannot
even be done manually because the relative sheet sizes are different.

These sheets do not contain data below about 3000 rows, so nothing would
be
lost if the sheets were cropped during the copy procedure (at the moment
the
entire sheets are copied).

What are my options? We need to keep the source files in 2003 format for
many users to have access. Revert to Office 2003 in the program file? - is
that the only realistic option here or is it possible to somehow force a
copy
and crop the sheet?

Many thanks for your assistance.



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
Copying Conditional Data Bar Format by Row to entire sheet Moz Excel Discussion (Misc queries) 0 October 5th 09 04:24 PM
Copying conditional formatting to an entire column in Excel 2007 Defiantclass Excel Worksheet Functions 3 June 18th 09 06:43 PM
Copying conditional formatting to entire sheet slyguy2183 Excel Discussion (Misc queries) 3 June 10th 08 05:20 AM
Copying formatting of entire sheet Diamontina Cocktail New Users to Excel 5 June 27th 07 10:50 PM
Copying the entire sheet if columns H & G are equal to row. ICSAnalyst[_2_] Excel Programming 0 November 12th 04 10:21 PM


All times are GMT +1. The time now is 06:51 AM.

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"