Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SiriS
 
Posts: n/a
Default Excel 2000 problem copying drawingobjects between sheets


Hello,
I have a problem in Excel 2000 during copying everything on a worksheet
to antoher worksheet (values in cells and textboxes).

To avoid the run-time error 1004 (from Microsofts Knowledge
Base-article - 177634) that occurrs if you copy the sheet over and over
again, following code is used:


Code:
--------------------
Sheets("MyOrigSheet").Visible = True
Sheets("MyOrigSheet").Select

'Add new sheet
Sheets.Add Befo=Sheets(1)

'Copy cells but not drawingobjects from original sheet
Sheets("MyOrigSheet").Cells.Copy

'Pasting cells on new sheet
Sheets(ActiveSheet.Name).Paste

'Copy drawingobjects (textboxes and buttons) from original sheet
Sheets("Sum per meas Grund").DrawingObjects.Copy

Sheets(ActiveSheet.Name).Paste

Sheets(ActiveSheet.Name).Select
Sheets(ActiveSheet.Name).Name = "MyNewSheet"
--------------------


Using Excel 2002 and Excel 2003 this works all fine. But not on Excel
2000.

Does not Drawingobjects exist in Excel 2000?

Do I have to check for version and then in case Excel 2000 use the
following code instead:

Sheets("MyOrigSheet").Copy Befo=Worksheets(1)
Sheets("MyOrigSheet").Visible = False
Sheets("MyOrigSheet(2)").Select
Sheets("MyOrigSheet(2)").Name = "MyNewSheet"

?

Thank you in advance.

Best Regards
Siri


--
SiriS
------------------------------------------------------------------------
SiriS's Profile: http://www.excelforum.com/member.php...fo&userid=7995
View this thread: http://www.excelforum.com/showthread...hreadid=509981

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Strange Excel Problem..... Sachin Shah Excel Discussion (Misc queries) 0 November 14th 05 09:36 AM
Problem with Excel 2000 ACN Bug Excel Discussion (Misc queries) 2 July 29th 05 10:23 PM
Excel ver 10 "Encounters a Problem" on starting Ken McLennan Excel Discussion (Misc queries) 6 July 19th 05 01:51 PM
Copying subtotals in Excel 2000 pearsall Excel Discussion (Misc queries) 3 April 21st 05 01:05 PM


All times are GMT +1. The time now is 07:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"