Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy an Excel worksheet to another workbook 1

Status
Not open for further replies.

jers

Technical User
Nov 7, 2007
1
US
Hi, I'm trying to copy an Excel worksheet to another workbook using a vbscript. What is the correct syntax for VBA's After:= in vbscript (so it doesn't expect the end of a statement here)?
Thanks, jers

Code:
xlapp.Worksheets("Buy List").Copy [b]After:=[/b]Workbooks("Print List.XLS").Worksheets(1)
 
xlapp.Worksheets("Buy List").Copy , xlapp.Workbooks("Print List.XLS").Worksheets(1)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top