- ©«¤l
- 107
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 127
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-8-29
- ³Ì«áµn¿ý
- 2023-11-17
|
[µo°Ý] ¨Ï¥Î FileDialog °ÝÃD [¤w¸Ñ¨M]
¥»©«³Ì«á¥Ñ jimmyhk ©ó 2011-9-14 19:17 ½s¿è
§Ú«Ø¥ß¤F¤@Óªí³æ, ·í«ö¤F CommandButton2 ¤§«á´N·|¶}¤@ÓÂsÄý¸ê®Æ§¨ªºª«¥ó,
¥Î§@¿ï¾Ü¸ê®Æ§¨, ¤Î«á§â¿ï¾Ü¤Fªº¸ê®Æ§¨¸ô®|¦s©ñ¨ì Data_Field ªº D24 ¤º,
¤º®e¦p¤U:
Private Sub CommandButton2_Click()
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
If fd.Show = -1 Then MsgBox "²{¦b±NÀx¦s¨ì " & fd.SelectedItems(1) & "/ . ½Ð«ö½T©wÄ~Äò"
Sheets("Data_Field").Select
Range("D24").Value = fd.SelectedItems(1) '¦pªG¨Ï¥ÎªÌ¦b FileDialog ¶}±Ò®É¨S¦³«ö½T©w, «ö¤F¨ú®øÁä, ´N·|°±¦b³o¸Ì. À³«ç»ò¿ì?
Unload ChoiceSaveLocation
End Sub |
|