Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default Dr. Watson error

Hello all,

I hope that someone will be able to help me with this problem. I have a
heavily coded spreadsheet in xl 97. It's been working fine for over a year
now. Suddenly, it now produces a Dr. Watson error in windows when it reaches
a specific point in the code where it copies a worksheet in the workbook and
pastes it at the end of the tabs. I'm using plain, simple code that as I
say, has been working great for over a year, so I'm very confused at why this
error would suddenly begin after all this time. I hope someone can tell what
I need to do to handle this Dr. Watson error. My code that copies the sheet
is below in case it is helpful in some way.

Sheets(3).Copy After:=Sheets(7)

ps: neither the workbook nor worksheet are protected


Thanks for any help/advice,

-Jack
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dr. Watson error

Look in the VBE in the project explorer and see if you have codenames for
your sheets like

Sheet1111111111111111111111

If you do, the problem is that xl97 appends a digit to the end of the code
name for the copy. When the length reaches around 32 characters, it bombs.

select the sheet, then make the property window visible and change the code
name to something much shorter. do this for any names that have gotten
long.

Attempt this on a copy of your workbook.

--
Regards,
Tom Ogilvy

"Jack" wrote in message
...
Hello all,

I hope that someone will be able to help me with this problem. I have a
heavily coded spreadsheet in xl 97. It's been working fine for over a

year
now. Suddenly, it now produces a Dr. Watson error in windows when it

reaches
a specific point in the code where it copies a worksheet in the workbook

and
pastes it at the end of the tabs. I'm using plain, simple code that as I
say, has been working great for over a year, so I'm very confused at why

this
error would suddenly begin after all this time. I hope someone can tell

what
I need to do to handle this Dr. Watson error. My code that copies the

sheet
is below in case it is helpful in some way.

Sheets(3).Copy After:=Sheets(7)

ps: neither the workbook nor worksheet are protected


Thanks for any help/advice,

-Jack



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
how do i calculate a durbin-watson statistic EKGILL Excel Worksheet Functions 2 April 29th 23 07:43 PM
Problems with Dr. Watson Markus Scheible[_2_] Excel Programming 1 January 27th 05 04:44 PM
Dr Watson is pushing my head under the poo.... Chris Adams Excel Programming 2 July 8th 04 08:11 PM
Dr. Watson ordinal44 error MAC Excel Programming 0 December 9th 03 04:12 PM
Dr Watson Error on opening file with VBA Denver McCann Excel Programming 0 October 1st 03 01:35 PM


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