Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
yuktayukata
Contributor II
Contributor II

マクロで使用する変数について

QVW上で処理対象月(変数)を定義・使用し、同QVW内のexport用モジュールでも処理対象月(変数)で同値を使用する処理があります。

現在はデータの更新時にも変数を使用しているためQVW上の変数はLoadScriptにてSETし、モジュールの変数はモジュールを編集しています。

QVW上の変数をモジュール内に引き継ぐ等、1度の設定で両方の変数をSETすることは可能でしょうか

1 Solution

Accepted Solutions
Not applicable

QVW上の変数(Variable1)の値をモジュールから取得する方法です。

Set v = ActiveDocument.GetVariable("Variable1")

Application.MsgBox(v.GetContent.String)

View solution in original post

2 Replies
Not applicable

QVW上の変数(Variable1)の値をモジュールから取得する方法です。

Set v = ActiveDocument.GetVariable("Variable1")

Application.MsgBox(v.GetContent.String)

yuktayukata
Contributor II
Contributor II
Author

どうもありがとうございます。

解決しました。