Any VBA code in Thisworkbook module crashes Excel

Geoboater

New Member
Joined
Aug 1, 2007
Messages
3
First time post....

Struggling with an Excel VBA problem as follows:

Background:
Windows Server 2003 used for a scientific application.
No Internet access - just a closed private network
Microsoft Office ExcelVersion 11.
Build 6560
Application pathC:\Program Files\Microsoft Office\OFFICE11\

Problem:
Any line of code that tries to execute in either the Thisworkbook or in any Worksheet Code Module will crash excel.
It does not matter what the code is. Any attempt to call anything in either of these 2 modules will crash XL.
Any code in a conventional code module runs fine.

I have tried this exact code on another Windows Server 2003 and it runs fine. I can step thru code.

Macro security is (for this test only) wide open - no restrictions
I have tried a "repair" to XL - same problem
I have removed Office completely and reinstalled - same problem
It used to work fine
A few installed programs have been removed to T/S - Still no good
Checked dates on all VBA/VBE files I know of. All appear to be correct

It seems as if it is some sort of security issue. Anyone with ideas?


'========================

For example:

In Thisworkbook add:
Sub AAA()
' No lcode will crash
' OR
' any line will crash.
End Sub

In Conventional Code module put:

Sub BBB()
Msgbox "Im here"
End Sub

Sub CCC()

Call BBB() ' Runs fine

Call Thisworkbook.AAA() ' Crash

End Sub
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,215,488
Messages
6,125,092
Members
449,206
Latest member
ralemanygarcia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top