読書記録ChangeLog

日記内を検索 / / / ランダム RSS

2005-07-14 / VBA Tips /

- tortoiseProcの場所をレジストリから取得する。
strTSVN = CreateObject("WScript.Shell").RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\TortoiseSVN\ProcPath")
- ファイルは存在するか?(bool)
CreateObject("Scripting.FileSystemObject").FileExists("ファイル名")
- 外部コマンドを実行
CreateObject("WScript.Shell").Run "コマンドライン"
- 外部コマンドを実行&完了待ち(外部コマンドの終了を待って何かをしたい場合)
CreateObject("WScript.Shell").Run "コマンドライン", , True
-AcitveHoge
ActiveWorkbook(Excel),ActiveDocument(Word),ActivePresentation(PowerPoint)など。
ActiveHoge.Saved,ActiveHoge.Name
ActiveHoge.Path,ActiveHoge.FullName
名前どおりの変数。
- エラーを無視する
    On Error Resume Next
Excel2000にはないPictureプロパティを使用するために入れている。

固定リンク [2005-07-14-6] このエントリーをはてなブックマークに追加 MM/memo投稿

[ コメント |

これまでの訪問者は 人です。