excel vba - Replacing missing values in VBA while using RExcel -


i using excel vba , rexcel.

here code:

sub calcrets()     dim outrange range     'clearoutput     rinterface.startrserver      rinterface.getrapply "function(mydata)tryingf(mydata)", _         range("predict!t17"), assimpledf(downrightfrom(range("'database'!b1")))      rinterface.stoprserver     set outrange = range("predict!t17:ce188").currentregion     highlight outrange      range("t18:ce188").select selection.replace what:="#saknas!", replacement:="", lookat:=xlpart, _     searchorder:=xlbyrows, matchcase:=false, searchformat:=false, _     replaceformat:=false end sub 

the output simple data frame.

the part:

 range("t18:ce188").select     selection.replace what:="#saknas!", replacement:="", lookat:=xlpart, _         searchorder:=xlbyrows, matchcase:=false, searchformat:=false, _         replaceformat:=false 

is recorded macro recorder. want replace "#saknas!" empty space. not work properly. not replace "#saknas!" , seem gives date...

wesecfa.lx.equity   ffhkopp.lx.equity   balhkgi.fp.equity #saknas!                #saknas!                #saknas! 0,072010019             #saknas!                -0,081449492 0,091121495             #saknas!                0,001003906 0,054068522             #saknas!                1900-01-00 -0,047232098        #saknas!                1900-01-00 

best regards


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -