Hi,
I wrote a 10 line program to import a word table to excel, as shown below.
The problem is that i get "Error 28: Out of stack space" whenever I run it, despite below actions
-I dont have any events for any even cascade
-NO fixed-length strings
-NO other procedures in the project
-NO procedure calls in this procedure
-NO other variable except WordTable as Object, which i destroy when i am done with it
-NO nested loops or DoEvents
-NO public declared variables
-NOTHING else open when i run this program
Please help! I am running out of options and I would really like to get this working. Is there a way to track stack space or clear it?
Thanks
I wrote a 10 line program to import a word table to excel, as shown below.
Code:
Sub Method1()
Debug.Print Application.MemoryTotal & " available; " & _
Application.MemoryFree & " free; " & _
Application.MemoryUsed & " used"
Dim wordTable As Object
Set wordTable = GetObject(ThisWorkbook.Path & "\test.doc") '<-- error here
With wordTable
.tables(1).Range.Copy
End With
Sheets(1).Paste
Set wordTable = Nothing
End Sub
The problem is that i get "Error 28: Out of stack space" whenever I run it, despite below actions
-I dont have any events for any even cascade
-NO fixed-length strings
-NO other procedures in the project
-NO procedure calls in this procedure
-NO other variable except WordTable as Object, which i destroy when i am done with it
-NO nested loops or DoEvents
-NO public declared variables
-NOTHING else open when i run this program
Please help! I am running out of options and I would really like to get this working. Is there a way to track stack space or clear it?
Thanks