: [シンプルなフォームのリンクスクリーンショット]を[1]チェックボックスがチェックされている場合は、「何か」を実行し
私はいくつかの助けが必要スケルトンスクリプトは、各チェックボックスがオンになっているかどうかをチェックします。 私はすべてのマクロを含むWordテンプレートのセットを持っています。 テンプレートがある場合の場合は、それぞれのテンプレートのマクロを実行したいとします。
だから、基本的には(おそらく、エラーの負荷を含む)は、次のようなもの:
Dim strFile1
Dim strFile2
Dim strFile3
Dim strFile4
Dim strFile5
Dim strFile6
if checkbox1.Checked Then
try to run command (Winword.exe c:\temp\document.doc /mNameOfMacro)
On error MsgBox ("could not find file from checkbox1")
if checkbox2.Checked Then
try to run command (Winword.exe c:\temp\document2.doc /mNameOfMacro)
On error MsgBox ("could not find file from checkbox2")
if checkbox3.Checked Then
try to run command (Winword.exe c:\temp\document3.doc /mNameOfMacro)
On error MsgBox ("could not find file from checkbox3")
if checkbox4.Checked Then
try to run command (Winword.exe c:\temp\document4.doc /mNameOfMacro)
On error MsgBox ("could not find file from checkbox4")
if checkbox5.Checked Then
try to run command (Winword.exe c:\temp\document5.doc /mNameOfMacro)
On error MsgBox ("could not find file from checkbox5")
if checkbox5.Checked Then
try to run command (Winword.exe c:\temp\document5.doc /mNameOfMacro)
On error MsgBox ("could not find file from checkbox5")
私は初心者の種類、およびオーバーデザイナーだから、この擬似コードは、まったく正しくないことを知っていますプログラマー。しかし、私はちょうど学び始めて、これはかなり基本的であることを知っています。 プログラミングのロジックの概要を知りたいだけです。そして、これを行う方法を学ぶことは他のものと一緒に私を助けてくれると思う。
を、あなたの擬似コードが何をするかし、サンプルコードをお探しですか?私が助けることができるように私に知らせてください。 –
最近私が尋ねたSOの質問にこのリンクをチェックしてください:http://stackoverflow.com/questions/737444/start-another-exe-in-managed-code JFV – JFV