- ©«¤l
- 561
- ¥DÃD
- 160
- ºëµØ
- 0
- ¿n¤À
- 725
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- xp
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-7
|
1.¦Û°Ê¦C¥X¸ê®Æ§¨¤¤©Ò¦³Àɮשó¦sÀx¦s®æ¤¤+¦Û°Ê«Ø¥ß¶W³sµ²¦p¤U
1.1 "C:\AAA\" ¦Û¦æÅܧ󬰻ݨD¸ê®Æ§¨address
Sub yy()
Dim s$, mpath$, mypath$, myname$, i%
s = "*.xls"
mpath = "C:\AAA\"
mypath = mpath & s
myname = Dir(mypath, vbNormal)
i = 1
Do While myname <> ""
Cells(i, 1) = myname
ActiveSheet.Hyperlinks.Add Anchor:=Cells(i, 1), Address:= _
mpath & myname, TextToDisplay:=Cells(i, 1).Text
i = i + 1
myname = Dir
Loop
End Sub |
|