Include file in excel to use in VBA -


i using code user browses specific file written text file. there way include file in excel file doesn't have located. file 4mb kml file.

application.filedialog(msofiledialogopen).allowmultiselect = false intchoice = application.filedialog(msofiledialogopen).show if intchoice <> 0     newfile = application.filedialog( _         msofiledialogopen).selecteditems(1) end if   set fs = createobject("scripting.filesystemobject") set f = fs.opentextfile(newfile)  print #1, f.readall  set f = nothing set fs = nothing 

hmm, microsoft says total number of characters cell can contain: 32,767 characters. read file line line - using readline in loop instead of readall - cells of hidden sheet, though formatting might lost. http://support.microsoft.com/kb/186118/en


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -