- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# yangjie
Application.GetOpenFilename ¤£¯àÅã¥ÜÄÝ©ÊÁôÂêºÀÉ®×
¸Õ¸Õ¬Ý Dir ªº±`¼Æ- ±`¼Æ È ´yz
- vbNormal 0 (¹w³]) «ü©w¨S¦³ÄݩʪºÀɮסC.
- VbReadOnly 1 °£µLÄݩʪºÀÉ®×¥~¡A¥t«ü©w°ßŪÀɮסC
- vbHidden 2 °£µLÄݩʪºÀÉ®×¥~¡A¥t«ü©wÁôÂÃÀɮסC
- vbSystem 4 °£µLÄݩʪºÀÉ®×¥~¡A¥t«ü©w¨t²ÎÀɮסC ¦bMacintosh ¤¤µLªk¨Ï¥Î¡C
- vbVolume 8 «ü©w¼ÐÅÒÀɮסF¦pªG«ü©w¤F¨ä¥¦ÄÝ©Ê¡AvbVolume ±N³Q©¿²¤¡C ¦bMacintosh¤¤µLªk¨Ï¥Î¡C
- vbDirectory 16 °£µLÄݩʪºÀÉ®×¥~¡A¥t«ü©w¸ô®|©ÎÀɮק¨¡C
- vbAlias 64 «ü©wªºÀɦW¬O§O¦W¡A¥u¦bMacintosh¤W¥i¥Î¡C
½Æ»s¥N½X- Option Explicit
- Sub Ex()
- Dim a, Ar()
- a = Dir("d:\*.*", 2 + 4)
- If a <> "" Then ReDim Preserve Ar(0): Ar(0) = a
- Do While a <> ""
- a = Dir
- If a <> "" Then
- ReDim Preserve Ar(UBound(Ar) + 1)
- Ar(UBound(Ar)) = a
- End If
- Loop
- If Join(Ar, vbLf) <> "" Then MsgBox Join(Ar, vbLf)
- End Sub
½Æ»s¥N½X |
|