I have the following in my code to select some worksheets that appear after the first 4 worksheets.
Sourcewb.Sheets(Array("Brake","Deburr")).Copy
Set Destwb = ActiveWorkbook
However, I want to be able to select all the worksheets after the first 4 worksheets. The names of these worksheets will always vary. I'm not sure of how to use the "Sourcewb.Sheets... bit and come up with a way to copy all those remaining sheets. They ultimately get pasted into the "Destwb".
Thanks,
Steve
__._,_.___
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
MARKETPLACE
.
__,_._,___
Tidak ada komentar:
Posting Komentar