iEhohs DokuWiki

主にプログラミングなど情シス業務の備忘録です

ユーザ用ツール

サイト用ツール


vba:create-textfile

テキストファイルを作成して入力する

Dim openFileName As String
openFileName = ThisWorkbook.Path & "/sample.txt"
Open openFileName For Output As #1
Print #1, "hoge"
Print #1, "fuga"
Print #1, "piyo"
Close #1
スポンサーリンク
vba/create-textfile.txt · 最終更新: 2023/11/15 23:23 by Shohei Okuda