Fight the Future

Java言語とJVM、そしてJavaエコシステム全般にまつわること

2006-06-16から1日間の記事一覧

列を非表示にする

worksheet.Columns(1).Hidden = True

標準モジュールやクラスモジュールの名前を変更する

VBEのメニューから 表示→プロパティ ウィンドウ→プロパティ→オブジェクト名 で名前を変更

ファイルを出力する

Public Sub makeTextFile(fileName As String, buff As String) Dim fileNo As Integer fileNo = FreeFile Open fileName For Output As #fileNo Print #fileNo, buff Close #fileNo End Sub

xmlファイルを読み込んでXPathを使う

ツール→参照制約→Microsoft XML, v?.0を選択して追加(http://www.microsoft.com/downloads/details.aspx?FamilyID=993c0bcf-3bcf-4009-be21-27e85e1857b1&DisplayLang=ja) Dim xDoc As MSXML2.DOMDocument ' DOM Parserオブジェクトを生成する Set xDoc = …

ファイル選択ダイアログを表示

Private Function showFileDialog(ByVal title As String) As String Dim selectedFileName As String selectedFileName = "" With Application.FileDialog(msoFileDialogOpen) .title = title .AllowMultiSelect = False .InitialFileName = ThisWorkbook.p…