version 1.4

This commit is contained in:
pt 2020-03-03 23:22:13 -05:00
parent 043c7264bf
commit f569e6238d
6 changed files with 34 additions and 3 deletions

View File

@ -74,6 +74,35 @@ Private Sub UserForm_Activate()
Exit Sub Exit Sub
End If End If
Me.lbHist.list = X Me.lbHist.list = X
lbHEAD.ColumnCount = lbHist.ColumnCount
lbHEAD.ColumnWidths = lbHist.ColumnWidths
' add header elements
lbHEAD.clear
lbHEAD.AddItem
lbHEAD.list(0, 0) = "Modifier"
lbHEAD.list(0, 1) = "Owner"
lbHEAD.list(0, 2) = "When"
lbHEAD.list(0, 3) = "Tag"
lbHEAD.list(0, 4) = "Comment"
lbHEAD.list(0, 5) = "Sales"
' make it pretty
'body.ZOrder (1)
'lbHEAD.ZOrder (0)
'lbHEAD.SpecialEffect = fmSpecialEffectFlat
'lbHEAD.BackColor = RGB(200, 200, 200)
lbHEAD.Height = 10
' align header to body (should be done last!)
lbHEAD.width = lbHist.width
lbHEAD.Left = lbHist.Left
lbHEAD.Top = lbHist.Top - (lbHEAD.Height - 1)
End Sub End Sub

Binary file not shown.

View File

@ -126,6 +126,7 @@ Private Sub cbGoSheet_Click()
Worksheets("month").sbMPP.value = 0 Worksheets("month").sbMPP.value = 0
Me.Hide Me.Hide
months.cbMTAG.value = ""
Worksheets("month").Visible = xlSheetVisible Worksheets("month").Visible = xlSheetVisible
Sheets("month").Select Sheets("month").Select
@ -579,7 +580,7 @@ Private Sub UserForm_Activate()
End If End If
'----------reset spinner buttons---------------------- '----------reset spinner buttons----------------------
sbpd.value = 0 sbpv.value = 0
sbpp.value = 0 sbpp.value = 0
sbpd.value = 0 sbpd.value = 0

BIN
fpvt.frx

Binary file not shown.

View File

@ -34,7 +34,7 @@ Private did_load_config As Boolean
Private Sub cbMTAG_Change() Private Sub cbMTAG_Change()
End Sub End Sub
@ -558,6 +558,7 @@ Sub build_json()
Set np("scenario")("iter") = JsonConverter.ParseJson("[""copy""]") Set np("scenario")("iter") = JsonConverter.ParseJson("[""copy""]")
np("source") = "adj" np("source") = "adj"
np("type") = "new_basket" np("type") = "new_basket"
np("tag") = cbMTAG.text
Set m = JsonConverter.ParseJson("{}") Set m = JsonConverter.ParseJson("{}")
End If End If

View File

@ -15,7 +15,7 @@ End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, cancel As Boolean) Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, cancel As Boolean)
If Intersect(Target, ActiveSheet.Range("b7:v100000")) Is Nothing Then If Intersect(Target, ActiveSheet.Range("b8:v100000")) Is Nothing Then
Exit Sub Exit Sub
End If End If