Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 'Out of stack space' error on SaveAs

I recently got a new machine with and am trying to run some existing
Excel VBA code. I have two problems:

- When I try to save a project I get an 'out of stack space' error.

- When I try to load an .xla I get an 'compile error: automation error'
on a simple declaration line:

Public gAMGMenu As CommandBarPopup

The problems are a mystery since everything worked OK on my previous
machine and it works on other peoples machines who have the same tools
as I.

It has been suggested that maybe the Excel/VBA installation is corrupt
and needs to be reinstalled.

The enviroment is:
- Windows XP Pro 2002 SP 2
- Excel 2002 10.2614.2625
- Visual Basic 6.3
. VBA 6.3.8863
. Forms3 2.01
. Version: 9108

Any tips are appreciated. Thanks!

--
Tim

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default 'Out of stack space' error on SaveAs

- When I try to load an .xla I get an 'compile error: automation error'
on a simple declaration line:

Public gAMGMenu As CommandBarPopup


In the VB editor: ToolsReferences
- Are any of the checked references marked as "MISSING"? try unchecking
& then rechecking them. Then DebugCompile.
- Do you have a checked reference for "Microsoft Office x.x Object
Library"? (that's where CommandBars live)

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"Tim" wrote in message
oups.com...
I recently got a new machine with and am trying to run some existing
Excel VBA code. I have two problems:

- When I try to save a project I get an 'out of stack space' error.

- When I try to load an .xla I get an 'compile error: automation error'
on a simple declaration line:

Public gAMGMenu As CommandBarPopup

The problems are a mystery since everything worked OK on my previous
machine and it works on other peoples machines who have the same tools
as I.

It has been suggested that maybe the Excel/VBA installation is corrupt
and needs to be reinstalled.

The enviroment is:
- Windows XP Pro 2002 SP 2
- Excel 2002 10.2614.2625
- Visual Basic 6.3
. VBA 6.3.8863
. Forms3 2.01
. Version: 9108

Any tips are appreciated. Thanks!

--
Tim



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 'Out of stack space' error on SaveAs

Nothing is MISSING and I have the MS Office 10 0 Object Library.

Recompile causes VB and Excel to die.

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 'Out of stack space' error on SaveAs

Problem solved.

I reran the Office installation having it detect and repair problems.
It ran quickly and the only noticeable affect was that it was
registering types.

The problem .xla loads just fine and compiles without errors.

Don't know what the problem was.

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
Out of Stack Space error TheMilkGuy Excel Discussion (Misc queries) 2 July 22nd 09 05:54 PM
Out of Stack space - run time error 28 Rob Excel Discussion (Misc queries) 2 December 17th 07 04:55 PM
Out of space stack error, simple code? Neal Zimm Excel Programming 2 January 7th 05 01:35 PM
Out of Stack Space error JimFor Excel Programming 2 December 26th 04 08:41 PM
Run time error 28: Out of stack space Will Wirtz Excel Programming 1 April 27th 04 01:39 PM


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