Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro crashes "Automation error" during copy of workbook with char

When I run a macro, I try to copy an entire excel book and then, in the new
workbook I delete the worksheets I dont need.

I receive the message "Error in automation 21474178481(80010108)" and
closes the excel program. I think the problem is that some sheets have
charts.

The argument with the problem is:

Worksheets.copy here it crashes

If I run the macro in the vb debug view, it can copy the workbook without
problem. But after 3 or 4 runnings it crashes.

I have tried some other commands such as:
Dim SH As Worksheet
Set SH = Worksheets.copy

but it does not work. Any idea?
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
"automation error" "unspecified error" ML Purdy Excel Discussion (Misc queries) 5 April 3rd 23 06:49 PM
Excel crashes on "Close" Visual Basic error 400 [email protected] Excel Discussion (Misc queries) 3 March 19th 08 03:45 PM
"Clean Me" Macro is giving "#VALUE!" error in the Notes field. Ryan Watkins Excel Programming 1 June 11th 05 12:25 AM
Excel automation "Error loading DLL" Paul Hewson Excel Programming 0 January 5th 04 08:34 PM


All times are GMT +1. The time now is 06:10 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"