option explicit
sub UDlg()
dim ret as boolean
dim tx as string
ret = dialogsheets("Dialog1").show
If ret = true then
tx = dialogsheets(1).editBoxes("ed1").text
range("b3").offset(range("d1").value - 1,
2).Value
= tx
else
end If
end sub
前回から引き続きの方は、Sub fontclr() の後にdim n as integerを追加する必要があります
[解説]
option explicitは変数を必ず定義しなさいの意味。 dim は変数を定義します、boolean
はブール型 string は文字型をあらわします。 dialogsheets("Dialog1").showはユーザーダイアログを表示しなさいの意味。