ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¨D±Ð°Ñ·Ó¥N¤J¤½¦¡?

[µo°Ý] ¨D±Ð°Ñ·Ó¥N¤J¤½¦¡?

A1        F:\th\               
A2        2013               
A3        A               
A4        9-Sep               
A5        09.xls               
A6        abcd               
A7        $AB$36               
                       
='F:\th\2013\A\09-Sep\[09.xls]abcd'!$AB$36                       
½Ð°Ý¦p¦ó§âA1:A7ªº°Ñ·Ó¼g¨ì¤½¦¡¨½¥h?
§Ú¬O³o¼Ë¼gªº
="='" &A1&A2&"\"&A3&"\"&TEXT(A4,"dd-mmm")&"\["&A5&"]"&A6&"'!"&A7
±o¨ìªºstring¬O:
='F:\th\2013\A\09-Sep\[09.xls]abcd'!$AB$36
¦ý³o­Ó¤½¦¡´N¬O¤£work,¨D¦U¦ìÀ°¤â,ÁÂÁÂ!
lmh

¦^´_ 1# mhl9mhl9
=INDIRECT("'" &A1&A2&"\"&A3&"\"&TEXT(A4,"dd-mmm")&"\["&A5&"]"&A6&"'!"&A7)

TOP

¦^´_ 2# stillfish00

let me try,thanks
lmh

TOP

¦^´_ 2# stillfish00


    ªð¦^string¬O¥¿½Tªº¦ý¥X¤F"Ref!",¤£¯à¨ú±o F:\th\A\09-Sep\09.xls¨½Range("ab36")ªº­È?
lmh

TOP

¦^´_ 4# mhl9mhl9

§A±N¨Ó·½Àɮ׶}±ÒÀ³¸Ó´N¯àÅã¥Ü
INDIRECT¨ç¼Æ¥²¶·¦b¥~³¡°Ñ·ÓÀɮצP®É¶}±Ò¤~¯à¥¿½T¨ú±o
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 5# Hsieh


    §Y¨Ï§Ú¥´¶}¥~³¡¤å¥óÁÙ¬O¥X"#Ref!"
indirect§Ú¬O¤£¯à¥Î,¦]¬°§Ú¤£¥i¯à·|¥´¶}¥~³¡¤å¥ó,¦ý¬O§Ú¿é¤Jªº¦r¦ê§¹¥þ©MrecorderÅã¥Ü¤@¼Ò¤@¼Ë,¦ý´N¬Onot work
¥i¯à§Ú¨S§â°ÝÃDÁ¿²M·¡,¬O³o¼Ëªº,§Ú­n¥Î¤½¦¡§ì¨ú F:\th\2013\A\09-Sep\09.xls-----sheet1.range("ab36")ªº­È
¨ä¤¤ F:\th\,2013,A,09-Sep,09.xls,sheet1,ab36 ³o7­Ódata¤À§O¦b A1:A7,¼g¤F¦h¦¸³£¥¢±Ñ,½Ð¦U¦ìÀ°¦£«üÂI,¦hÁ¤F
lmh

TOP

¦^´_ 5# Hsieh

¥Îvb¿é¤J¤½¦¡¬OOKªº,
  Selection.Formula = "='" & [$g$2] & Format([$j$2], "yyyy") & "\" & [$a3] & "\" & Format([$j$2], "dd-mmm") & "\[" & Format([$j$2], "dd") & ".xls]" & [G3] & "'!" & [$j3]
'¥H¤W¿é¤J¥i¥H§ì¨ú­È,¦ýÀx¦s®æ¨½¯d¤Uªº¬O"­È",¤£¬O¤½¦¡,§Ú¤£¯à½Æ»s¤½¦¡!
¬O¤£¬O¥i¥H§ï¤@§ï¤W­±ªº¿é¤J,¥i¥H¿é¤J¤½¦¡,¦Ó¤£¬O¿é¤J­È,´NOK¤F,§Ú§ï¤F100¦¸,³£¥¢±Ñ
lmh

TOP

¦^´_ 2# stillfish00

indirect¤½¦¡,·í09.xls¤å¥ó¥´¶}®É,¥i¥H¨ú±o­È
'=INDIRECT("'" &$A$1&$A$2&"\"&$A$3&"\"&TEXT($A$4,"dd-mmm")&"\["&$A$5&"]"&$A$6&"'!"&$A$7)

indirect¤½¦¡,·í09.xls¤å¥óÃö³¬®É,#REF!

®³¨«indirect,¥Î¥H¤U¤½¦¡¿é¤J
'="='" &$A$1&$A$2&"\"&$A$3&"\"&TEXT($A$4,"dd-mmm")&"\["&$A$5&"]"&$A$6&"'!"&$A$7
Àx¦s®æÅã¥Üªº¬O,¦ý¤£¯à¨ú±o­È
'='F:\th\2013\A\09-Sep\[09.xls]Sheet1'!AB36

¥Î¤â¤u¿é¤J¥H¤W¤½¦¡,¥i¥H¥¿±`¨ú±o­È
'='F:\th\2013\A\09-Sep\[09.xls]Sheet1'!AB36

¥Î¤½¦¡¨ú±oªº¦r¦ê©M¤â¤u¿é¤Jªº¦r¦ê¬O¤@¼Ò¤@¼Ë,¦ý´N¬O¥Î¤½¦¡¿é¤Jªºnot work,¤â¤u¿é¤J´Nok,§Æ±æ§A¯àÀ°¦£«üÂI°g®|,ÁÂÁÂ
lmh

TOP

¦^´_ 7# mhl9mhl9
  1. Sub Ex()
  2.     Dim S As String
  3.     S = "='" & [g2] & Format([j2], "yyyy") & "\" & [a3] & "\" & Format([j2], "dd-mmm") & "\[" & Format([j2], "dd") & ".xls]" & [G3] & "'!" & [j3]
  4.     Selection.Formula = S
  5. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 9# GBKEE


    °Ñ¬Ý 7#,°ÝÃDÁÙ¬O¨S¸Ñ¨M.
§Ú·Q¥i¯à§Úªº­n¨D¬OµLªk¹F¨ìªº,§Ú·Q°Ý¤@°Ý¬O¤£¬O§@¬°worksheetfunction,¤½¦¡ªº¦r¦ê¤¤2­Ó³æ¤Þ¸¹¤§¶¡¤£¯à¦³"ÅܼÆ"
selection="=a1 & b1" ,selection¥i¥H¨ú±o±aÅܼƪº¤½¦¡
selection="='a1 & b1'",selection¨ú±oªº¬Ostring----a1&b1
§Ú§â§Aªºvb¿é¤J§ï¦¨¦p¤U:
S = "='" & "g2" & "Text(j2, ""yyyy"")" & "\" & "a3" & "\" & "Text(j2, ""dd-mmm"")" & "\[" & "Text(j2, ""dd"")" & ".xls]" & "G3" & "'!" & "j3"
selection=s
selection±o¨ì¤@­Ó¿ù»~ªº¤½¦¡
§Ú§â¿ù»~ªº¤½¦¡¦V¤U½Æ»s,¬Ý¨ì¥u¦³"j3"·|ÅÜ,j4,j5,j6....
¥þ¤¤"g2","j2","a3","g3"³£Åã¥Ü¦r¦ê,¤£¯àÅÜ
©Ò¥H§Ú·Q§Úªº­n¨D¥i¯à¬O¹H¤Ï¤°麽ÅÞ¿è,¬O¿ùªº
§Ú°O±o¦pªG¸ô®|¦r¦ê¤¤¨S¦³ªÅ®æ,¨º»ò³æ¤Þ¸¹´N¥i¥H¤£¥Î,§Ú·|¸Õ¤@¸Õ,¤£¥Î¦ý¤Þ¸¹,¯à¤£¯à§âÅܼÆÅã¥Ü¦b¤½¦¡¤¤.
ÁÂÁ§AªºÀ°§U.¬Q¤Ñ¦£¤F¤@¤Ñ¥¼¯à¦pº@,¤£±o·N¦Ó¨D¨ä¦¸,¥u¯àvb¿é¤J¥þ³¡¤½¦¡,°Ñ¼Æ§ïÅÜ,´N¥u¯à­nuser,«öÁä¨D¨ä­È§ïÅÜ.
lmh

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦¨´N¤@¤Á¡j®É¶¡¥i¥H³y´N¤H®æ¡A¥i¥H¦¨´N¨Æ·~¡A¤]¥i¥HÀx¿n¥\¼w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD