Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Copy Multiple Spreadsheets into One Workbook

I'm having problems with the proper coding notation for the .Copy Sub.
i want to run this via VBScripting or windows scripting but don't
know what to substitute for the ":="

Does anyone know how this would translate into a VBScript?


XL.Application.Workbooks(1).Worksheets(1).Copy After:=Worksheets(i)

thnks

bryan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Copy Multiple Spreadsheets into One Workbook

Tried it. Get the same error as befo "Copy method of worksheet
class failed."

I'm assuming this is due to said syntax. If this is the case, I have
yet to see a working example in WSH/VBS in the groups. Perhaps i'm
going about it the wrong way?












"Patrick Molloy" wrote in message ...
try
XL.Application.Workbooks(1).Worksheets(1).Copy
After:=XL.Application.Workbooks(1).Worksheets(i)
--
Patrick Molloy
Microsoft Excel MVP
----------------------------------
"Astroplastic" wrote in message
om...
I'm having problems with the proper coding notation for the .Copy Sub.
i want to run this via VBScripting or windows scripting but don't
know what to substitute for the ":="

Does anyone know how this would translate into a VBScript?


XL.Application.Workbooks(1).Worksheets(1).Copy After:=Worksheets(i)

thnks

bryan

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
combine multiple spreadsheets into one workbook Jen Excel Worksheet Functions 1 April 22nd 10 01:12 PM
Copy the same 2 columns from multiple spreadsheets into one new sh Tas Excel Discussion (Misc queries) 0 December 7th 07 12:04 AM
password protect multiple spreadsheets in a workbook WORKSHEET PROTECTION Excel Worksheet Functions 3 October 26th 06 07:06 PM
Consolidate multiple spreadsheets into a single workbook Andy T Excel Discussion (Misc queries) 0 April 24th 06 01:13 PM
Workbook & multiple spreadsheets allenta416 Excel Worksheet Functions 1 September 12th 05 03:54 PM


All times are GMT +1. The time now is 02:05 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"