2、窗体界面
Private Sub userform_Initialize()
With UserForm1.ListView1
.ColumnHeaders.Add 1, , "公司名称", .Width / 8, 0
.ColumnHeaders.Add 2, , "联系人", .Width / 8, 2
.ColumnHeaders.Add 3, , "联系方式", .Width / 8, 2
.ColumnHeaders.Add 4, , "揽收员", .Width / 8, 2
.ColumnHeaders.Add 5, , "寄递量", .Width / 8, 2
.ColumnHeaders.Add 6, , "营业执照", .Width / 8, 2
.ColumnHeaders.Add 7, , "经营范围", .Width / 8, 2
.ColumnHeaders.Add 8, , "公司地址", .Width / 8, 2
.View = lvwReport
.Gridlines = True
.FullRowSelect = True
.MultiSelect = True
.Font.Size = 10
.Font.Name = "宋体"
.ForeColor = vbBlack
End With
With UserForm1.Label1
.Caption = "客户管理系统"
.BackStyle = 1
.AutoSize = True
.WordWrap = False
.TextAlign = fmTextAlignCenter
.Font.Name = "楷体"
.Font.Underline = True
.Font.Bold = True
.Font.Size = 18
.Height = UserForm1.Height / 2
.ForeColor = vbBlack
.MousePointer = fmMousePointerIBeam
End With
End sub
|