VB代码运行失败求助解决
PublicSubinit()/DimstrRowSourceAsString/DimcolWidthsAsString/IfstrSheetName="客户信息"The...
Public Sub init() /Dim strRowSource As String /Dim colWidths As String /If strSheetName = "客户信息" Then / strRowSource = "客户信息!$A4:$E" & Application.Evaluate("COUNTA(客户信息!A:A)") /strCols = "A2:2,B2:5,$A2:1,C2:3" /colWidths = "35;70;80;100;80;120" /End If /If strSheetName = "商品信息" Then / strRowSource = "商品信息!$A4:$E" & Application.Evaluate("COUNTA(客户信息!A:A)") / strCols = "A2:2,B2:5,$A2:1,C2:3" /colWidths = "35;100;200;70;50;50" /rngBlankCol = "C" /End If /With listInfo / .RowSource = strRowSource /.ColumnWidths = colWidths /End With /Me.listInfo.Height = IIf(Me.Height >= 350, 280, 128) /txt_keyWord.SetFocus/End Sub
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询