GetOpenFilename «ü©wºô¸ôªÚ¾F¸ô®|
- ©«¤l
- 51
- ¥DÃD
- 9
- ºëµØ
- 0
- ¿n¤À
- 73
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-7-28
- ³Ì«áµn¿ý
- 2015-12-17
|
GetOpenFilename «ü©wºô¸ôªÚ¾F¸ô®|
ChDrive "D\"
ChDir "D:\test\123\"
fileToOpen = Dir(Application.GetOpenFilename("All Files(*.xls),*.xls"))
¥H¤W¬O¹w³]¦n¶}±ÒÂÂÀɮɪº¸ô®|¬°D±ätest¸ê®Æ§¨©³¤Uªº123¸ê®Æ§¨
¥B¥i¥¿½T°õ¦æ
¨º¦pªG·Q±N¸ô®|§ï¬°ºô¸ôªÚ¾F¤¤ªº¸ê®Æ§¨©O?
ex:Microsoft Windows Network¤¤ªºDomain¤¤ªºWoc©³¤Uªºtest¸ê®Æ§¨
§Ú¼g¦¨³o¼Ë
ChDrive "Domain\\"
ChDir "Woc\test"
fileToOpen = Dir(Application.GetOpenFilename("All Files(*.xls),*.xls"))
¥i¬OChDir "Woc\test"³o¦æ«o¦]§ä¤£¨ì¸ô®|¦Ó¿ù»~
¦³¸ÕµÛ¥ÎÀÉ®×Á`ºÞ¶}±ÒDomain
¦ý«o¥X²{µLªk¦s¨úDomain,§ä¤£¨ìºô¸ô¸ô®|
¦ý¬O§Ú«o¥i¥H¶}±ÒWoc©³¤UªºªF¦è
½Ð°Ý¸Ó¦p¦óקï©O
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 1# t591nm
¦]¬°«e¤@¥yªº ChDrive ¬O¤Á´«µwºÐ¡A§Aµ¹¥¦ºô¸ô¤Wªº¹q¸£¡AµLªk¤Á´«¹L¥h
¤TºØ´À¥N¤è®×:
1. ¤â°Ê«Ø¥ß³s½uºÏºÐ¾÷ ¦p Z: ¹ïÀ³¨ì \\Domain\Woc\test
µM«á§ï¦¨ChDrive "Z:"
¦AGetOpenFilename
2. §ï¥Î Application.FileDialog(msoFileDialogOpen)
³]©w¨ä InitialFileName ¬° "\\Domain\Woc\test"
3. ¥Î API
Private Declare Function SetCurrentDirectory Lib "kernel32" _
Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long
©I¥s
SetCurrentDirectory "\\Domain\Woc\test"
¦AGetOpenFilename |
|
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C
|
|
|
|
|
- ©«¤l
- 51
- ¥DÃD
- 9
- ºëµØ
- 0
- ¿n¤À
- 73
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-7-28
- ³Ì«áµn¿ý
- 2015-12-17
|
¦^´_ 2# stillfish00
§Ú¹Á¸Õ¥Î²Ä2ºØ
¦ýÁÙ¬O¤£¦æ
¸ô®|¨ÌµM¨SÅÜ(ÁÙ¬O¦b¨t²Î¹w³]¸ô®|)
¦]¬°§Ú¤U±ÁÙ¦³²o§è¨ì¶·n±N¸Óµ§Àɮ׽ƻs¨ì¥t¤@¤u§@ªí
¦pªG¥Î²Ä1ºØ
¦ý«o¤£ª¾¹D¸Ó«ç»ò«Ø¥ß³s½uºÏºÐ¾÷ |
|
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 3# t591nm
§Ú¸Õ¹L¥i¥H¡AÀˬd§A¸ô®|¬O¤£¬O¶ñ¿ù©Î¼gªk¼g¿ù§a
¦@¥Î¸ê®Æ§¨¸ô®|³£¬O \\¹q¸£¦WºÙ\¸ê®Æ§¨¦WºÙ
§Aªº"Domian"¬Oºô¸ôªÚ¾Fªº¹q¸£¶Ü.....???
"³s½uºÏºÐ¾÷" google ¤@¤U¡A²Ä¤@¶µ´N¦³¤F.... |
|
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C
|
|
|
|
|
- ©«¤l
- 51
- ¥DÃD
- 9
- ºëµØ
- 0
- ¿n¤À
- 73
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-7-28
- ³Ì«áµn¿ý
- 2015-12-17
|
¦^´_ 4# stillfish00
ÁÂÁ¦^ÂÐ
§Úª¾¹D°ÝÃD¥X¦bþ¤F
¬O¦b©ó·d¿ù¤F¹q¸£¦WºÙ
¨ä¹êWoc¤~¬O¹q¸£¦WºÙ
¥t¥~Ãö©óºô¸ôºÏºÐ¾÷
¦]¬°¹q¸£ÄÝ©óXP
¤]¨S±µÄ²¹L³o°Ï¶ô
©Ò¥H¤~·|¤£ª¾¹D«ç»ò³sµ²
·PÁ¤j¤j¦^ÂÐ |
|
|
|
|
|
|