|
Private Sub UserForm_Initialize()
Me.ComboBox1.RowSource = "年間目標!A9:A13"
With UserForm1.ComboBox1
ComboBox2.AddItem "(月)"
ComboBox2.AddItem "(火)"
ComboBox2.AddItem "(水)"
ComboBox2.AddItem "(木)"
ComboBox2.AddItem "(金)"
End With
End Sub
Private Sub UserForm1_Initialize()
With UserForm1.ComboBox1
.List = Sheets("年間目標").Range("A9:A13").Value
End With
End Sub
Private Sub CommandButton9_Click()
Const ColStep = 8
Const RowStep = 39
Dim ListIdx1 As Long
Dim ListIdx2 As Long
Dim varWS As Variant
ListIdx1 = Me.ComboBox1.ListIndex
ListIdx2 = Me.ComboBox2.ListIndex
Sheets("週別管理").Range("E33").Offset(ListIdx1 * RowStep, ListIdx2 * ColStep).Value = _
Me.TextBox127.Value
End Sub
としております。
色々と試してはみたのですが、どうしてもE列以外には入力されませんでした・・・。
どこか間違ってますでしょうか?
|
|