これは、経験豊富な VBA 開発者/ユーザーにとっては非常に簡単なコードかもしれませんが、私は新しいプログラミングを行っており、すでに数日間このタスクに取り組んでいます :( 。全体(可能であれば)または「for-each next」または「for next」を使用してループすると、これを試みたすべての試行でエラーが発生します.誰かがこの問題で私を助けてくれますか....thxsかなり前に
数式は F =m*a のように簡単なもので、選択した範囲が "m" であるとしましょう
範囲を選択するコードは次のとおりです。
Option Base 1
Sub KVmodel()
'Select the data points from the excel spreadsheet
Dim A, B As Range
Set A= Application.InputBox("Select A Range", "Select a range", Type:=8)
Set B= Application.InputBox("Select B Range", "Select a range", Type:=8)
'Verify the lenght of the selected data
If A.Count = B.Count Then
MsgBox "Do you want to run the KV Model Adjustment?", vbYesNo
'Calculates F according to the values of the model
-
-
-
Else
MsgBox "The range sizes are different, please re-select the input data"
End If
End Sub