VBA (Excel): Step Over debug and crash down with application.run -


i'm working vba excel. have following function:

function (...) ... application.run "subname"... ... end function

first question: while i'm debugging step on (shift f8) @ application.run line, debugger go "subname" sub that's step debug (f8 alone) instead of step on (shift f8).

so question is: possible step on debug application-run?

second question: if stop macro during execution of application.run command excel automatically close!

so question is: there alternative application.run command?

thanks

i have been experiencing same problem mentioned , tested creating application object run method, solved crash.

an example:

function addspace(val1) string     addspace = val1 & " " end function  sub testrunanotherfunction()     dim result, o     set o = application()     result = o.run("addspace", "one")     result = result & "detail" end sub 

but not satisfied , wanted figure out why happening in both excel 2013 , 2016. found if explicitly set function return string, excel crash when either reset while in function or error thrown in there (provided not utilise application object methodology above).

coders more hard-core me might able elaborate more thoroughly on happening behind scenes cause this. not want speculate further. :-)


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -