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
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