Rabu, 28 September 2011

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

 

I'm hoping someone can give me a hand with this one. I think I've managed to work around the other two topics I've posted yesterday.

Thanks,

Steve

--- In ExcelVBA@yahoogroups.com, "sspatriots" <sspatriots@...> wrote:
>
> 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