Selasa, 27 September 2011

[ExcelVBA] Select all Worksheets after the first 4 to copy

 

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

__._,_.___
Recent Activity:
----------------------------------
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

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar