[µo°Ý]office 2010 word ½d¥»¤£¯à¨Ï¥ÎApplication.FileSearch
- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 7
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2011-11-23
- ³Ì«áµn¿ý
- 2011-12-14
|
[µo°Ý]office 2010 word ½d¥»¤£¯à¨Ï¥ÎApplication.FileSearch
¥»©«³Ì«á¥Ñ awlk ©ó 2011-11-23 14:50 ½s¿è
½ÐÓ¦ì¤j¤j,³o쥻¬O¦boffice 2003 ¼gªº¥¨¶°,¥Ø«e¦]§ï¦¨office 2010,©Ò¥H¤£¯à¶]¤F,¤£ª¾¹D¦³¨º¦ì¦n¤ßªº°ª¤â¯àÀ°À°¤p§Ìקï¤@¤U,·P®¦~~~~~~
Private Sub CommandButtonOK_Click()
Dim PicturePath$
Dim Msg, Style, Title, CR
CR = Chr$(13)
PicturePath$ = ChoosePathForm.TextBox1.Value
With Application.FileSearch
.NewSearch
.LookIn = PicturePath$
.SearchSubFolders = False
.FileName = "*.jpg"
.MatchTextExactly = True
.FileType = msoFileTypeAllFiles
If .Execute() > 0 Then
Call Load_the_Pictures(PicturePath$)
Else
Msg = "There are no pictures in this directory:" _
+ CR + CR + PicturePath$ + CR + CR + _
"Please check the path again."
Style = vbOKOnly + vbQuestion
Title = "No files found"
MsgBox Msg, Style, Title
End If
End With
End Sub |
|
|
|
|
|
|