Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy worksheet from Active workbook into all other open workbooks

Hi,

Ammending the below code, how can I complete the following ;
1) copy a worksheet (named "Invoice") from the activesheet into all other
open workbooks (in the first worksheet position).
2) have cell F8 in all the new workbooks match the cell ref for each of the
i,3 values in the activesheet

Sub NewFiles()
Const cPath = "C:\Temp\"

Dim wkb As Workbook, i As Long, lngLastRow As Long, sht As Worksheet

With ActiveSheet
lngLastRow = .Cells(Rows.Count, 3).End(xlUp).Row
For i = 12 To lngLastRow
Set wkb = Workbooks.Add
wkb.SaveAs cPath & .Cells(i, 3).Value

Next
End With

End Sub

Thanks
Troy


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
Macro to copy active worksheet to new workbook Macca Excel Discussion (Misc queries) 1 May 25th 08 02:07 PM
Copy Worksheet from one open workbook to another... sopranoiam Excel Worksheet Functions 0 August 17th 07 05:12 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM
Mailing Excel workbooks that are not active workbook Beverly[_3_] Excel Programming 11 January 15th 04 12:51 PM
copy sheet1 from all open workbooks to one workbook Mike[_61_] Excel Programming 2 October 31st 03 02:16 PM


All times are GMT +1. The time now is 12:41 PM.

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"