View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
ryguy7272 ryguy7272 is offline
external usenet poster
 
Posts: 2,836
Default swap contents for one workbook with contents from another one

Can't you just save the New workbook with the same name as the Old workbook?
If you really want to copy/paste, this is an excellent starting point:
http://www.rondebruin.nl/ado.htm

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Bug Repro" wrote:

Hello

I am creating a solution in which I need to swap the contents of an existing
workbook with contents from a backup copy. The destination workbook
is in open state before this operation starts. What I am thinking of is to
copy and past of all the worksheets from the backup to the
destination and delete all the original worksheets from the destination, and
then
saving the destination document. Is there a better option? We want to make
the user experience as smooth as possible. Ideally, the view state of the
destination will be preserved as is.

I need to do this for Excel 2003, and 2007. Please let me know what the best
approach would be.

Thanks