- ©«¤l
- 25
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 35
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- S
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2016-2-24
|
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 |
|