Error 1004 Workbooks.Add Inplace-Activation

M

Magnus Pettersson

Hi !
I don't know if I am in the correct forum
but here it comes any way

Sub AddWorkBook()
ThisWorkbook.Application.Workbooks.Add
End Sub

this simple macro only works from the debugger environment if I have XL
Inplace Activated

Is there any workarounds ?

Best regards Magnus
 
M

Magnus Pettersson

Is it so that XL has a state that it cannot do this ?

COleClientItem::activeUIState

Do I have to change state to
pItem->DoVerb (OLEIVERB_OPEN, pView ); ????
 
Top