ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[Âà¶K] ½Ð°ÝVBA©óEXCEL·s¼W¤å¦rÀÉ®×+¤é´Á

Sub ²£¥Í¤å¦rÀÉ()
xT = "¤å¦rÀɤº®e"
xFile = thisworkbook.path & "\" & format(date,"yyyymmdd") & ".txt"
Open xFile For Output As #1  'OutputÂл\ÂÂ¸ê®Æ
Print #1, xT
Close #1
End Sub

TOP

Sub ²£¥Í¤å¦rÀÉ_2()
xT = "¤å¦rÀɤº®e"
xFile = thisworkbook.path & "\" & format(date,"yyyymmdd") & ".txt"
Open xFile For Append As #1  'Append-¼g¦bÀɮתº§ÀºÝ...²Ö¼W
Print #1, xT
Close #1
End Sub

TOP

¥t¥~, ¥i·j¤U­±¨âºØ¤èªk//
CreateObject("Scripting.FileSystemObject") + OpenTextFile
CreateObject("ADODB.Stream")

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD