PC Review


Reply
Thread Tools Rate Thread

Deleting Shapes

 
 
pablo k
Guest
Posts: n/a
 
      22nd Jul 2009
Dear newsgroupers,

In Excel 2007 I want to copy a worksheet that contains some shapes to a
new workbook and remove the shapes from the copy before I save the new
workbook.

When I use the expression:
ActiveSheet.Shapes.SelectAll
Selection.Delete

I get an error saying I am running low on memory.
I use a laptop with 1 GB of memory.

Is the code correct?
Is there another solution?

Please advise,

pablo k
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      22nd Jul 2009
Try

Activesheet.DrawingObjects.Delete

If this post helps click Yes
---------------
Jacob Skaria


"pablo k" wrote:

> Dear newsgroupers,
>
> In Excel 2007 I want to copy a worksheet that contains some shapes to a
> new workbook and remove the shapes from the copy before I save the new
> workbook.
>
> When I use the expression:
> ActiveSheet.Shapes.SelectAll
> Selection.Delete
>
> I get an error saying I am running low on memory.
> I use a laptop with 1 GB of memory.
>
> Is the code correct?
> Is there another solution?
>
> Please advise,
>
> pablo k
>

 
Reply With Quote
 
pablo k
Guest
Posts: n/a
 
      22nd Jul 2009
Yes, Jakob Skaria's solution works!

But I don't know what you mean with "click Yes"...

Thanks though

pablo k


Jacob Skaria schreef:
> Try
>
> Activesheet.DrawingObjects.Delete
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "pablo k" wrote:
>
>> Dear newsgroupers,
>>
>> In Excel 2007 I want to copy a worksheet that contains some shapes to a
>> new workbook and remove the shapes from the copy before I save the new
>> workbook.
>>
>> When I use the expression:
>> ActiveSheet.Shapes.SelectAll
>> Selection.Delete
>>
>> I get an error saying I am running low on memory.
>> I use a laptop with 1 GB of memory.
>>
>> Is the code correct?
>> Is there another solution?
>>
>> Please advise,
>>
>> pablo k
>>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      22nd Jul 2009
See also this page for more info
http://www.rondebruin.nl/controlsobjectsworksheet.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"pablo k" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> Dear newsgroupers,
>
> In Excel 2007 I want to copy a worksheet that contains some shapes to a
> new workbook and remove the shapes from the copy before I save the new
> workbook.
>
> When I use the expression:
> ActiveSheet.Shapes.SelectAll
> Selection.Delete
>
> I get an error saying I am running low on memory.
> I use a laptop with 1 GB of memory.
>
> Is the code correct?
> Is there another solution?
>
> Please advise,
>
> pablo k

 
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
Deleting shapes in 2007 S Johnson Microsoft Powerpoint 0 6th Aug 2008 05:03 PM
Deleting Shapes =?Utf-8?B?YWZ0YW1hdGg=?= Microsoft Excel Misc 5 5th Nov 2005 12:37 AM
Deleting shapes =?Utf-8?B?RHIuU2Nod2FydHo=?= Microsoft Excel Programming 1 15th Oct 2004 10:18 AM
deleting sheets and shapes Gary Adamson Microsoft Excel Misc 1 8th Sep 2004 01:38 AM
Deleting shapes Steve Microsoft Excel Programming 4 16th Jun 2004 05:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 PM.