- 帖子
- 258
- 主題
- 77
- 精華
- 0
- 積分
- 385
- 點名
- 0
- 作業系統
- Win7
- 軟體版本
- Office2010
- 閱讀權限
- 20
- 性別
- 男
- 來自
- Taiwan
- 註冊時間
- 2010-8-8
- 最後登錄
- 2021-1-25
|
2#
發表於 2021-1-14 22:42
| 只看該作者
本帖最後由 yangjie 於 2021-1-14 22:46 編輯
我想可能諸位大大不懂我的困擾所在
Dim mystr As String
With Application.Names.Add("Tmp2", .Range(.Cells(2, 1), .Cells(row1, 24)))
'Tmp2是全部資料,而我要的是含部分條件之資料
'Tmp2在Range(.Cells(2, 1), .Cells(row1, 24))之中篩選出.cell(ii,4)=Textbox4的每一列
'是否應先篩選到另一個sheets然後再mystr = .RefersTo
mystr = .RefersTo
.Delete
End With
ListBox2.RowSource = ""
With ListBox2
.ColumnCount = 24
.ColumnWidths = "78pt;60pt;80pt;70pt;..........."
.RowSource = mystr
.ColumnHeads = True
.ListIndex = ListBox2.ListCount - 1
End With
End With
敬請指導 不勝感激 |
|