PC Review


Reply
Thread Tools Rate Thread

delete sheet in shared workbook

 
 
=?Utf-8?B?SmFhbg==?=
Guest
Posts: n/a
 
      23rd Oct 2007
Hi All
I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
template sheet, collect data from another workbook,copy to template sheet, to
sort data in template sheet and then put correct data in to the My Sheet and
then I like to delete template sheet. That is my problem, macro cant delete
template sheet. Is there a way delete sheet in shared workbook?
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Oct 2007
How did you insert a worksheet into that shared workbook?

Jaan wrote:
>
> Hi All
> I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
> template sheet, collect data from another workbook,copy to template sheet, to
> sort data in template sheet and then put correct data in to the My Sheet and
> then I like to delete template sheet. That is my problem, macro cant delete
> template sheet. Is there a way delete sheet in shared workbook?


--

Dave Peterson
 
Reply With Quote
 
SteveM
Guest
Posts: n/a
 
      23rd Oct 2007
I never used shared workbooks so can't answer your question directly.
But if you can't delete the template sheet because the book is shared,
why don't you just create the template in the source data workbook, do
the sort there, then copy the sorted data to MySheet?

I suppose you could also clear and hide the template sheet in the
shared workbook if it's no big deal that it's there.

SteveM

On Oct 23, 3:26 am, Jaan <J...@discussions.microsoft.com> wrote:
> Hi All
> I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
> template sheet, collect data from another workbook,copy to template sheet, to
> sort data in template sheet and then put correct data in to the My Sheet and
> then I like to delete template sheet. That is my problem, macro cant delete
> template sheet. Is there a way delete sheet in shared workbook?



 
Reply With Quote
 
=?Utf-8?B?SmFhbg==?=
Guest
Posts: n/a
 
      23rd Oct 2007
Hi Dave

I insert it with my macro
Sheets.Add.Name ="Problems".
I like answer from Steve, but nevertheless I like to know how I can delete
it.

"Dave Peterson" kirjutas:

> How did you insert a worksheet into that shared workbook?
>
> Jaan wrote:
> >
> > Hi All
> > I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
> > template sheet, collect data from another workbook,copy to template sheet, to
> > sort data in template sheet and then put correct data in to the My Sheet and
> > then I like to delete template sheet. That is my problem, macro cant delete
> > template sheet. Is there a way delete sheet in shared workbook?

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
=?Utf-8?B?SmFhbg==?=
Guest
Posts: n/a
 
      23rd Oct 2007
Thank you Steve
The simplicity is the brilliance
Why I didn't know it myself.The sheet hiding can solve my problem, but
nevertheless
I like to know, how delete it




"SteveM" kirjutas:

> I never used shared workbooks so can't answer your question directly.
> But if you can't delete the template sheet because the book is shared,
> why don't you just create the template in the source data workbook, do
> the sort there, then copy the sorted data to MySheet?
>
> I suppose you could also clear and hide the template sheet in the
> shared workbook if it's no big deal that it's there.
>
> SteveM
>
> On Oct 23, 3:26 am, Jaan <J...@discussions.microsoft.com> wrote:
> > Hi All
> > I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
> > template sheet, collect data from another workbook,copy to template sheet, to
> > sort data in template sheet and then put correct data in to the My Sheet and
> > then I like to delete template sheet. That is my problem, macro cant delete
> > template sheet. Is there a way delete sheet in shared workbook?

>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Oct 2007
Look at "features unavailable in a shared workbook" in Excel's help and you'll
see that deleting sheets is one of those unavailable features.





Jaan wrote:
>
> Hi Dave
>
> I insert it with my macro
> Sheets.Add.Name ="Problems".
> I like answer from Steve, but nevertheless I like to know how I can delete
> it.
>
> "Dave Peterson" kirjutas:
>
> > How did you insert a worksheet into that shared workbook?
> >
> > Jaan wrote:
> > >
> > > Hi All
> > > I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
> > > template sheet, collect data from another workbook,copy to template sheet, to
> > > sort data in template sheet and then put correct data in to the My Sheet and
> > > then I like to delete template sheet. That is my problem, macro cant delete
> > > template sheet. Is there a way delete sheet in shared workbook?

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?SmFhbg==?=
Guest
Posts: n/a
 
      24th Oct 2007
Dave
Thank you for response

"Dave Peterson" kirjutas:

> Look at "features unavailable in a shared workbook" in Excel's help and you'll
> see that deleting sheets is one of those unavailable features.
>
>
>
>
>
> Jaan wrote:
> >
> > Hi Dave
> >
> > I insert it with my macro
> > Sheets.Add.Name ="Problems".
> > I like answer from Steve, but nevertheless I like to know how I can delete
> > it.
> >
> > "Dave Peterson" kirjutas:
> >
> > > How did you insert a worksheet into that shared workbook?
> > >
> > > Jaan wrote:
> > > >
> > > > Hi All
> > > > I have workbook with one worksheet (ex. "MySheet"). I have macro to insert
> > > > template sheet, collect data from another workbook,copy to template sheet, to
> > > > sort data in template sheet and then put correct data in to the My Sheet and
> > > > then I like to delete template sheet. That is my problem, macro cant delete
> > > > template sheet. Is there a way delete sheet in shared workbook?
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> 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
Macro can not unprotect a sheet in a shared workbook Mike H Microsoft Excel Programming 4 19th Dec 2009 09:15 PM
Save ONLY 1 Sheet in a Shared Workbook truapplegirl@gmail.com Microsoft Excel Programming 2 8th Nov 2008 04:24 AM
Deleting a sheet in a shared and protected workbook atledreier Microsoft Excel Programming 2 6th Nov 2007 09:00 AM
EnableOutlining with shared workbook protected sheet? =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Programming 0 8th Jun 2005 10:22 AM
Problem with shared workbook (history sheet) =?Utf-8?B?QUNI?= Microsoft Excel Worksheet Functions 2 9th Dec 2004 08:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:15 PM.