text - How to do a tabulation char in VBA? -


if want make tabulation message box or write in file.

to write in file:

> 'file  > dim fso new filesystemobject 'fso  > dim file_dbc 'file write >  > file_dbc="" 'complete path >  > set file_dbc = fso.opentextfile(file_dbc, forwriting, true,tristateusedefault) 'open  > data file_dbc.writeline 'test' 

you have use vbtab

msgbox "blabla" + vbtab + "blabla"

you can use: chr(9) directly correspond tabulation char in ascii table. i.e. : "reverse" of chr() asc()


Comments