Preselect the tag on the Month View sheet if there's only one.
This commit is contained in:
parent
b10a3ac655
commit
b73403aef7
Binary file not shown.
Binary file not shown.
@ -77,8 +77,14 @@ Private Sub butCancel_Click()
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub cbGoSheet_Click()
|
Private Sub cbGoSheet_Click()
|
||||||
shMonthView.Range("MonthComment").Value = ""
|
Dim tags
|
||||||
|
tags = RangeToArray(shConfig.ListObjects("TAGS").DataBodyRange)
|
||||||
|
If UBound(tags, 1) = 1 Then
|
||||||
|
shMonthView.Range("MonthTag").Value = tags(1, 1)
|
||||||
|
Else
|
||||||
shMonthView.Range("MonthTag").Value = ""
|
shMonthView.Range("MonthTag").Value = ""
|
||||||
|
End If
|
||||||
|
shMonthView.Range("MonthComment").Value = ""
|
||||||
shMonthView.Range("QtyPctChange").Value = 0
|
shMonthView.Range("QtyPctChange").Value = 0
|
||||||
shMonthView.Range("PricePctChange").Value = 0
|
shMonthView.Range("PricePctChange").Value = 0
|
||||||
shMonthView.Visible = xlSheetVisible
|
shMonthView.Visible = xlSheetVisible
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user