Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Worksheet Copying.........crashes !!!



I have a porblem with shared woorkbook, created in excel 2002, that is
password protected.

when opened/run in excel 97 it crashes on the following code (which
programatically creates a sheet from another):

' Now recreate from an image of the template
Sheets("Template").Select
Sheets("Template").Copy after:=Sheets(1)
Sheets(2).Name = "Report"

Is there some sort of compatibility issue that causes the above code to
crash in 97 but not in 2002 ?

any input/advise would be very much appreciated.

thanks !!!!


--
sconly
------------------------------------------------------------------------
sconly's Profile: http://www.excelforum.com/member.php...o&userid=34038
View this thread: http://www.excelforum.com/showthread...hreadid=537995

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Worksheet Copying.........crashes !!!

there is not reason that particular code shouldn't work.

This is a guess, but
after the crash, go into the vbe into tools=references and see if any
references are marked as MISSING. If so, you need to fix that problem.

--
Regards,
Tom Ogilvy


"sconly" wrote:



I have a porblem with shared woorkbook, created in excel 2002, that is
password protected.

when opened/run in excel 97 it crashes on the following code (which
programatically creates a sheet from another):

' Now recreate from an image of the template
Sheets("Template").Select
Sheets("Template").Copy after:=Sheets(1)
Sheets(2).Name = "Report"

Is there some sort of compatibility issue that causes the above code to
crash in 97 but not in 2002 ?

any input/advise would be very much appreciated.

thanks !!!!


--
sconly
------------------------------------------------------------------------
sconly's Profile: http://www.excelforum.com/member.php...o&userid=34038
View this thread: http://www.excelforum.com/showthread...hreadid=537995


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 2007 crashes on copying worksheet to new workbook browniebodrum Excel Discussion (Misc queries) 1 March 17th 12 12:27 AM
Excel crashes when copying to Word?? L.S. Excel Discussion (Misc queries) 10 August 13th 09 04:01 PM
Password protected workbook crashes copying worksheet SueD Excel Discussion (Misc queries) 0 April 21st 08 01:21 PM
Excel Crashes When Copying Multiple Sheets in VBA Tim Hubbard Excel Programming 3 July 13th 04 06:29 PM
Excel crashes when copying worksheets Martien Janssen Excel Programming 1 July 5th 04 10:52 PM


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

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

About Us

"It's about Microsoft Excel"