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

EXCEL VBA §ì¨ú¸ê®Æ°ÝÃD

EXCEL VBA §ì¨ú¸ê®Æ°ÝÃD

§Ú¦³¤@­Óµ{¦¡¦p¤U  §Ú·|¥h§ìtmp ¸ê®Æ
¦ý¬O§ÚÂI¨ì­þ­ÓSHEET  ¥L´N·|³o­Ó­ÓSHEET °õ¦æ¤U­±µ{¦¡½X
½Ð°Ý  §Ú¬O·QÅý¥LSHEET3 °õ¦æ¤U­±ªºµ{¦¡½X?
¦³¤H·|§ï¼g¶Ü?



Sub GetValue()
    Dim sPath As String
    sPath = ThisWorkbook.Path & "\"
    Range("A1:A999").FormulaArray = "='" & sPath & "[tmp.xlsx]tmp'!A1:A999"
    Range("B1:B999").FormulaArray = "='" & sPath & "[tmp.xlsx]tmp'!C1:C999"

End Sub

¦^´_ 1# iwiniwin

³o¼Ë´N¥i¥H¤F¡A¦ý­nª`·Nªº¬OSheet¦WºÙ©MSheet½s¸¹¨Ã¤£¤@©w¤@¼Ë¡A¤U­±¥Îªº¬OSheet½s¸¹©ÎªÌ§A¤]¥i¥H§ï¦¨¥Î¦WºÙ=>Worksheets("Sheet3")
    Sheet3.Range("A1:A999").FormulaArray = "='" & sPath & "[tmp.xlsx]tmp'!A1:A999"

TOP

        ÀR«ä¦Û¦b : ¯àµ½¥Î®É¶¡ªº¤H¡A¥²¯à´x´¤¦Û¤v§V¤Oªº¤è¦V¡C
ªð¦^¦Cªí ¤W¤@¥DÃD