EXCEL§ì¨úCSV¸ê®Æ¨Ã§Y®É§ó·s
- ©«¤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# jasonwu0114
ªþ¤W¤£¦æªºµ{¦¡½X¬Ý¬Ý |
|
|
|
|
|
|
- ©«¤l
- 28
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 43
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2013-11-8
- ³Ì«áµn¿ý
- 2020-4-9
|
¤£¶}±ÒÀɮפUŪ¨ú¸ê®Æªº¸ô®|/ÀɦW³]©w¬°ÅܼưÝÃD
±ýŪ¨úªºEXCELÀɦW¤¤³£¦³·í¤Ñ¤é´Á(ex:ooxxx1021216.xls)
·Q°µ¤@±i·JÁ`ªí¦s©ñ¦b¥t¤@Ó¸ê®Æ§¨
·JÁ`ªíAÄæ¦ì¬O§Únªº¤é´Á
¥H¤£¶}±ÒÀɮפ覡¨ÓŪ¨ú¸ê®Æ
¦³¸Õ¹Lª½±µ¥Î "µu´ÁªÑÅv§ë¸ê³¡¦ì¤Îµû»ù±±ºÞªí1021216.xls" ¬O§ì¨ì¸ê®Æ
¦ý§ï¦¨" µu´ÁªÑÅv§ë¸ê³¡¦ì¤Îµû»ù±±ºÞªí" & dd & ".xls"
¥ÎÅܼƤ覡´N¤£¦æ
¥X²{n§Ú¿ï¨úÀɮתºµe±
À³¸Ó¬OÅܼƳ]©w¿ù»~
½Ð°Ý
1.ÅܼÆn¦p¦ó³]©w??
2.ÁÙ¦³¨ä¥L§ó¤è«Kªº¤è¦¡¨ÓŪ¨ú¥¼¶}±ÒÀɮ׸ê®Æ??
Sub checkclosedfile1()
Dim strpath As String, strfile As String
Dim strsheet As String, strresult As String
strpath = "X:\·ºÞ³øªí\µu´ÁªÑÅv§ë¸ê³¡¦ì¤Îµû»ù±±ºÞªí"
strfile = "µu´ÁªÑÅv§ë¸ê³¡¦ì¤Îµû»ù±±ºÞªí1021202.xls"
strsheet = "¥þ¤½¥qI"
strresult = getcellvalue(strpath, strfile, strsheet, "i1")
Cells(2, 2) = strresult
End Sub
Public Function getcellvalue(strpath As String, strfile As String, strsheet As String, stra1 As String)
getcellvalue = ExecuteExcel4Macro("'" & "[" & strfile & "]" & strsheet & "'!" & Range(stra1).Address(, , xlR1C1))
End Function |
|
¤p¤Hª«
|
|
|
|
|