Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying Sheets

I have this code

Workbooks.Open Filename:=Range("C1").Value
Sheets("Sheet1").Select
Selection.Copy
ActiveWorkbook.Close SaveChanges:=False
Windows("Book1.xls").Activate
Sheets("Sheet2").Select
ActiveSheet.Paste

The cod looks at the path in C1 and opens the file listed there. I
then copies Sheet1 i that workbook. It should then paste it int
Book1.xls but doesm't.

Any ideas what's wrong

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying Sheets

its ok i've done it again. I should do this before I post I know.

Workbooks.Open Filename:=Range("C1").Value
ActiveWindow.WindowState = xlNormal
Sheets("Sheet2").Select
Sheets("Sheet2").Copy Befo=Workbooks("Book1.xls").Sheets(1)
Sheets("Sheet1").Select
ActiveWindow.WindowState = xlMaximized

MsgBox ("Completed Copying")

End Su

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying Sheets

Maybe reading the answers you get would be a good thing too.

--
Regards,
Tom Ogilvy

"ianripping " wrote in message
...
its ok i've done it again. I should do this before I post I know.

Workbooks.Open Filename:=Range("C1").Value
ActiveWindow.WindowState = xlNormal
Sheets("Sheet2").Select
Sheets("Sheet2").Copy Befo=Workbooks("Book1.xls").Sheets(1)
Sheets("Sheet1").Select
ActiveWindow.WindowState = xlMaximized

MsgBox ("Completed Copying")

End Sub


---
Message posted from http://www.ExcelForum.com/



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 Sheets Stacy C[_2_] Excel Discussion (Misc queries) 3 July 27th 09 11:03 PM
Copying sheets j.ruderman[_2_] Excel Worksheet Functions 1 October 7th 08 12:41 AM
Copying Sheets LiAD Excel Worksheet Functions 1 September 10th 08 04:55 PM
Copying Sheets Ross Excel Discussion (Misc queries) 1 January 2nd 08 07:02 PM
copying sheets fastballfreddy Excel Discussion (Misc queries) 2 May 5th 06 07:20 AM


All times are GMT +1. The time now is 11:52 AM.

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

About Us

"It's about Microsoft Excel"