Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Error renaming Worksheets when addin is loaded

Hello:

I wrote an addin that works fine in Excel 2003. But when loaded in Excel 2007 it
causes a crash if I try to rename a worksheet in any file I happen to have open.
If I unload the addin the problem goes away.

The addin has several thousand of lines of code and I don't have a clue to where the
problem is. Does anyone have a suggestion as to where I might look for the problem?
Or what kinds of routines are likely to cause this type of problem?

Thanks for any isight.

Pieter Vandenberg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Error renaming Worksheets when addin is loaded


I don't have XL 2007 (thank you) but you should be able, in the VBE,
to go to Tools | Options | General (tab) and change the Error Trapping
selection to "Break on all Errors".
Then try renaming a sheet, the code should stop when the error occurs
and you will be able to see the troublesome section.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"vandenberg p"

wrote in message
Hello:
I wrote an addin that works fine in Excel 2003. But when loaded in Excel 2007 it
causes a crash if I try to rename a worksheet in any file I happen to have open.
If I unload the addin the problem goes away.

The addin has several thousand of lines of code and I don't have a clue to where the
problem is. Does anyone have a suggestion as to where I might look for the problem?
Or what kinds of routines are likely to cause this type of problem?

Thanks for any isight.
Pieter Vandenberg


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Error renaming Worksheets when addin is loaded

Jim:

Thank you, that's a good suggestion and I will give it a try, I don't have a good feeling
about 2007 yet, maybe it will "grow on me." I still use 2003 for most everything.

Pieter Vandenberg

Jim Cone wrote:
:
: I don't have XL 2007 (thank you) but you should be able, in the VBE,
: to go to Tools | Options | General (tab) and change the Error Trapping
: selection to "Break on all Errors".
: Then try renaming a sheet, the code should stop when the error occurs
: and you will be able to see the troublesome section.
: --
: Jim Cone
: San Francisco, USA
: http://www.realezsites.com/bus/primitivesoftware
: (Excel Add-ins / Excel Programming)



: "vandenberg p"
:
: wrote in message
: Hello:
: I wrote an addin that works fine in Excel 2003. But when loaded in Excel 2007 it
: causes a crash if I try to rename a worksheet in any file I happen to have open.
: If I unload the addin the problem goes away.

: The addin has several thousand of lines of code and I don't have a clue to where the
: problem is. Does anyone have a suggestion as to where I might look for the problem?
: Or what kinds of routines are likely to cause this type of problem?

: Thanks for any isight.
: Pieter Vandenberg


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Error renaming Worksheets when addin is loaded

On Oct 30, 3:51 am, "Jim Cone" wrote:
I don't have XL 2007 (thank you) but you should be able, in the VBE,
to go to Tools | Options | General (tab) and change the Error Trapping
selection to "Break on all Errors".
Then try renaming a sheet, the code should stop when the error occurs
and you will be able to see the troublesome section.
--
Jim Cone
San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)

"vandenbergp"

wrote in message
Hello:
I wrote an addin that works fine in Excel 2003. But when loaded in Excel 2007 it
causes a crash if I try to rename a worksheet in any file I happen to have open.
If I unload the addin the problem goes away.

The addin has several thousand of lines of code and I don't have a clue to where the
problem is. Does anyone have a suggestion as to where I might look for the problem?
Or what kinds of routines are likely to cause this type of problem?

Thanks for any isight.
PieterVandenberg


Hello:

Finally got back to the project and the problem is that Excel crashes
so you do not have a chance to choose to debug. And it does appear to
be a problem within Excel not in my routine, although it does appear
that my routine contributes to the problem, but Excel should really
not be crashed by something my add-in does.

Anyway still looking for any feedback on how I can trace the problem.
Thanks.

Pieter
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Error renaming Worksheets when addin is loaded

Pieter Vandenberg wrote:
: On Oct 30, 3:51 am, "Jim Cone" wrote:
: I don't have XL 2007 (thank you) but you should be able, in the VBE,
: to go to Tools | Options | General (tab) and change the Error Trapping
: selection to "Break on all Errors".
: Then try renaming a sheet, the code should stop when the error occurs
: and you will be able to see the troublesome section.
: --
: Jim Cone
: San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware
: (Excel Add-ins / Excel Programming)
:
: "vandenbergp"
:
: wrote in message
: Hello:
: I wrote an addin that works fine in Excel 2003. But when loaded in Excel 2007 it
: causes a crash if I try to rename a worksheet in any file I happen to have open.
: If I unload the addin the problem goes away.
:
: The addin has several thousand of lines of code and I don't have a clue to where the
: problem is. Does anyone have a suggestion as to where I might look for the problem?
: Or what kinds of routines are likely to cause this type of problem?
:
: Thanks for any isight.
: PieterVandenberg

: Hello:

: Finally got back to the project and the problem is that Excel crashes
: so you do not have a chance to choose to debug. And it does appear to
: be a problem within Excel not in my routine, although it does appear
: that my routine contributes to the problem, but Excel should really
: not be crashed by something my add-in does.

: Anyway still looking for any feedback on how I can trace the problem.
: Thanks.

: Pieter

I wanted to follow up with the comment that if I change the sheet name
programmatically with a routine such as:


Sub renamesheet()
Dim Rsheet As String
Rsheet = InputBox("New Name of Sheet", , "Result")
ActiveSheet.Name = Rsheet
End Sub

Excel 2007 will not crash.

Pieter
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
Stuck addin loaded helmekki[_102_] Excel Programming 0 November 15th 05 12:29 AM
Display sheet from loaded Addin Stuart[_21_] Excel Programming 3 March 10th 05 06:59 PM
Addin opened but not loaded Jac Tremblay[_3_] Excel Programming 1 November 30th 04 04:15 PM
XLL addin not loaded! Tetsuya Oguma[_4_] Excel Programming 6 October 22nd 04 02:54 PM
Addin loaded but Macro not shown Blair C. Fonville Excel Programming 2 September 8th 04 04:26 PM


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