PC Review


Reply
Thread Tools Rate Thread

Code to 'unbundle' and array

 
 
Rob
Guest
Posts: n/a
 
      9th Sep 2010
I need help writing the code that unbundles an array of worksheets.

I have an application where upon completion prepares a two sheet-tab
summary and copies these to a new workbook. The problem I have is
when the user closes the newly created summary workbook and returns
the the original workbook, the two sheet-tabs are still 'grouped'.

Is there code to unbundle these two sheets when the user returns to
the original workbook, and opens to the 'report' sheet-tab?

Here is the code I use to take the two tabs and copy them to a new
workbook:

'**********copies to new workbook
Sheets(Array("Summary", "report")).Select
Sheets(Array("Summary", "report")).Copy

Thanks for any help,

Rob
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Sep 2010
Try removing the .select line. It's not necessary and it's causing your trouble.



On 09/09/2010 17:20, Rob wrote:
> I need help writing the code that unbundles an array of worksheets.
>
> I have an application where upon completion prepares a two sheet-tab
> summary and copies these to a new workbook. The problem I have is
> when the user closes the newly created summary workbook and returns
> the the original workbook, the two sheet-tabs are still 'grouped'.
>
> Is there code to unbundle these two sheets when the user returns to
> the original workbook, and opens to the 'report' sheet-tab?
>
> Here is the code I use to take the two tabs and copy them to a new
> workbook:
>
> '**********copies to new workbook
> Sheets(Array("Summary", "report")).Select
> Sheets(Array("Summary", "report")).Copy
>
> Thanks for any help,
>
> Rob


--
Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array code ? Seeker Microsoft Excel Programming 0 1st Nov 2009 02:38 AM
How to unbundle field headers and details MxCC Microsoft Access Reports 1 9th Apr 2009 05:46 PM
Using an Array to re-use code godiva Microsoft Access VBA Modules 1 13th Dec 2005 10:38 PM
Passing Array from C# manged code to unmanged code Manish Microsoft C# .NET 2 6th Jan 2004 08:14 PM
Re: Passing array of bytes from VB Managed code to VC unmanaged code Wael Bakr Microsoft VC .NET 1 10th Jul 2003 12:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.