- ©«¤l
- 6
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 9
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- office2000
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2021-1-11
- ³Ì«áµn¿ý
- 2021-3-22
|
¥»©«³Ì«á¥Ñ u800901 ©ó 2021-3-9 21:48 ½s¿è
¦^´_ 2# qekqo
ÁÂÁ¦^´_:'(
¤£¹L§Úèè¤w¸g¬ã¨s¥X¨Ó¤F!!!
³o¼Ë¥un¥hקïfunction¤ºªºµ{¦¡½X¡A¬Æ¦Üuserform¤ºªºÄÝ©Ê
²×©ó¤£¥Î¦A°µ¨â¹M¤u¤F...:'(
´ú¸Õµ{¦¡½X¦p¤U- Option Explicit
- Public TT As String
- Dim TT_sh_Database, TT_sh_Export As Worksheet
- -------------------------------------------------------------------------------------------------
- Private Sub cmbOO_Click()
- TT = test_func("OO")
-
- End Sub
- -------------------------------------------------------------------------------------------------
- Private Sub cmbXX_Click()
-
- TT = test_func("XX")
-
- End Sub
- -------------------------------------------------------------------------------------------------
- Function test_func(ByRef TT As String)
-
- Dim wb As Workbook
- Dim sh As Worksheet
-
- Set wb = ThisWorkbook
- Set TT_sh_Database = wb.Sheets(TT & "-Database")
- Set TT_sh_Export = wb.Sheets(TT & "-Export")
-
- If TT = "OO" Then
- TT_sh_Database.Select
- Else
- TT_sh_Export.Select
- End If
-
- Msgbox TT
- End Function
½Æ»s¥N½X |
|