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

¦p¦ó¨ú±o¬Y­ÓÀɮתºÀx¦s®æ¸ê®Æ¡H¡]ÀÉ®×ÀɦW¡A¼g¦b¦sÀx¦s®æ¤º¡^

¦^´_ 4# eigen

¬Ý¨Ó§A¬O­nÅý¿é¥X­¶ªºÀx¦s®æ¡A¨Ì¾ÚSetupªºB1»PB8©Ò²Õ¦¨ªº¥~³¡°Ñ·Ó¦r¦ê°µ³sµ²
¨Ò¦p:¿é¥X­¶A4­n±o¨ìD:\report\[20131106 ¾P³f.xls]Sheet4!A4ªº­È
©Ò¥H¿é¥X­¶A4¥²¶·¬O¤½¦¡='D:\report\[20131106 ¾P³f.xls]Sheet4'!A4
    ©Ò¥Hµ{¦¡½X´Nª½±µ¼g¤J¤½¦¡§Y¥i
Sheet2.[A4] = "='" & [B1] & [B8] & "'!A4"
  1. Private Sub CommandButton1_Click()
  2.         Dim file_Input As String
  3.         file_Input = Application.GetOpenFilename("EXCELÀÉ(*.XLS),*xls")
  4.         If file_Input <> "" Then
  5.                 MsgBox "Reference " & file_Input
  6.                 Range("B1").Value = Replace(file_Input, Dir(file_Input), "[" & Dir(file_Input) & "]") 'Âন°Ñ·Ó§Î¦¡ªº¦r¦ê
  7.                 Sheet2.[A4] = "='" & [B1] & [B8] & "'!A4" '¿é¥X­¶A4¼g¤J¤½¦¡
  8.         End If
  9. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¹D¼w¬O´£ª@¦Û§Úªº©ú¿O¡A¤£¸Ó¬O¨þ¥¸§O¤HªºÃ@¤l¡C
ªð¦^¦Cªí ¤W¤@¥DÃD