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

[µo°Ý] Ãö©ó¦Û°Ê¶K¤W³sµ²¦Ü¥t¤@­ÓÀɮרæ۰ʴ¡¤J¶W³sµ²

¦^´_ 52# lpk187


¤F¸Ñ¡I¦]µ{¦¡½X¬O©ñ¦b.ThisWorkbook.Sheets("¥XÀ\³æ")©Ò¥HŪ¨úªº¸ê®Æ¬O¥¿½Tªº¡A
¥Ø«e·Q½Ð°Ý¡@¡×©Î¬O¢ë¢÷¢ø£B¡@³£¬O½Æ»s­È¡@¡@¡@¥i¥H§ï¦¨¤°»òÅý¥L¶K¤Wªº¬O³sµ²©O¡H

ActiveSheet.Paste Link:=True¡@¡@¡@¡@¡Õ¡Ð¡Ð­ì¥»¶K¤W³sµ²ªº¤è¦¡¡@

   ¥Ø«e­×¥¿¬°
  1.     Sheets("¼Æ¾Ú").Select
  2.     Range("B22").Select
  3.     Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
  4.     Sheets("§Ö³t¿é¤J").Select
  5.     Range("B2") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1").Value
  6.     Range("C3") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("C4").Value
  7.     Range("D3") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("V1").Value
  8.     Range("B4") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("X3").Value
  9.     Range("B5") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("E1").Value
  10. End Sub
½Æ»s¥N½X

TOP

¦^´_ 55# starry1314
  1. Option Explicit
  2. Sub EX()
  3.     Dim AR(1 To 2) As Integer
  4.     'Integer ÅܼƫY¥H½d³ò¬° -32,768 ¨ì 32,767 ¤§ 16 ¦ì¤¸ (2 ­Ó¦ì¤¸²Õ) ¼Æ¦rªº§Î¦¡Àx¦s
  5.     AR(1) = 5
  6.     AR(2) = 15
  7.     AR(2) = "w15"   '<- ¸ê®Æ«¬ºA¤£¹ï ¤w«ü©w¸ê®Æ«¬ºA©Ò¥H¿ù»~²£¥Í¤F
  8. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 51# GBKEE

·PÁª©¥D~³o­Óµøµ¡§Ú¦³°õ¦æ¥X¨Ó¡I¦ý¦b§ÎºA¤U¤è¨º­Ó¬õ®Ø¡A¤£À´­n«ç»ò¤F¸Ñ²[¸q! §Ú¥ý§ä¨ä¥Lªºµ{¦¡½X¨Ó¬Ý¬Ý®t²§©Ê¦b­þ¦n¤F

TOP

¦^´_ 53# lpk187


    ¤F¸Ñ~©Ò¥H­n¥Î°Ï°ìÅܼƵøµ¡¨ÓÆ[¬Ý´N¬O­n¥ýµ¹«ü¥O¤@­ÓÅܼƤ~¦³¿ìªk¤@­Ó¤@­ÓÆ[¬Ý°õ¦æµ²ªGÅo|?
¦p AA=ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value'
¥ý¨Ó¤F¸Ñ¬Ý¬Ý~

TOP

¦^´_ 50# starry1314


    ª©¥D¥X¨Ó¦^½Æ¤F¡C¤£¹L§Ú¦A¸É¥R¤@¤U§A¦]¬°¤£ª¾¹D§A©Ò¿é¤Jªº­È¬O§_¹ï¿ù¥i¥H¥ÎÅܼƨÓÆ[¬Ý
¤]¬O»¡¡A¥HWorkbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B2") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value¨Ó»¡
¥i¥H¥Î
AA=ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value'¨Ó¬Ý§Aªºµ{¦¡½X¬O¥k¦³¿é¤J¿ù»~¦A¦C¤U­±³o¦æ
§A¥i¥H¦b°Ï°ìÅܼƵøµ¡¤¤©ú¥Õªº¬Ý¥XAA³o­ÓÅܼƪºÅܤƤF
Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B2") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value
µM«á¦A¥Î¤@­ÓÅܼƨÓÆ[¬ÝWorkbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B2")¿é¤J¹ï¤£¹ï¨Ì¦¹ªkÃþ±À¡A´N¥i¥H«Ü²M·¡ªº¤F¸Ñ«ç»ò¨Ó«ç»ò¥h¤F
ÁÙ¦³ ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Valueªº"H1:I1"¬O¦X¨ÖÀx¦s®æªº¸Ü¥i¥H¥u¥Î"H1´N¥i¥H¤F¨Ò¦p"ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1").Value

TOP

¦^´_ 49# starry1314


    §Ú¥ý¦^½Æ³o°ÝÃD
Sheets("§Ö³t¿é¤J").Select"  '¦]¬°³o¸Ì¤w¿ï¨úSheets("§Ö³t¿é¤J")³o­Ó¤u§@ªí©Ò¥H¤U­±¤£¯à³o¼Ë¼g¡AThisWorkbook.Sheets("¥XÀ\³æ")¬Oµ{¦¡½X©Ò¦bªº¦a¤è¡A°£«D§Aªºµ{¦¡½X¬O©ñ¦b.ThisWorkbook.Sheets("¥XÀ\³æ")³o­Ó¤u§@ªí§_«h¤£¯à³o¼Ë¼g
    Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B2") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value
§Ú°²³]§Aªºµ{¦¡½X©ñ¦bThisWorkbook.Sheets("¥XÀ\³æ")³o¸Ì¡A¦Ó§A¥ý¤S°µ¤FSheets("§Ö³t¿é¤J").Select¡A§Aªºµ{¦¡¥i¥H²¼g¦¨   Range("B2") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value
­Y¬O¨S°µSheets("§Ö³t¿é¤J").Select¿ï¨úªº¸Ü¡A¤]´N¬Oµe­±¬O°±¯d¦bThisWorkbook.Sheets("¥XÀ\³æ")³o­Ó¤u§@ªí¤¤«h¥i¥H²¼g¦¨Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B2") =.Range("H1:I1").Value

TOP

¦^´_ 50# starry1314

·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ starry1314 ©ó 2015-5-11 00:59 ½s¿è

¦^´_ 47# lpk187


¥t·Q½Ð°Ý°Ï°ìÅܼƵøµ¡­n«ç»ò¬Ý©O?
¥´¶}«á«öF8³v¦æ´ú¸Õ
¹Bºâ¦¡  ­È   «¬ºA
¤£¤ÓÀ´«ç»ò§Q¥Î¥H¤W¤T¶µ¦Ó¨Ó¤F¸Ñ«ü¥Oªº·N¸q
¬O¥H¹Bºâ¦¡©Î«¬ºA¥h»¡©ú´M§ä¶Ü? ¥Î¹Bºâ¦¡§ä¤£¨ì,¥H§ÎºA¨º§ä¥X¨Óªº¤S¤£¤Ó·f

¹³wsTarget <³o¬O¦Û©w¸q¦WºÙ¶Ü?

TOP

¦^´_ 47# lpk187

¥Ø«e§Ú§ï¼g¦¨³o¼Ë...¦ý­n«ç»òÅý¥L¶K¤Wªº¬O³sµ²©O?
¥Ø«e°µªk¬O³Ì«á¦b¥[¤W«ü¥OÅý§Ú»Ý­nªº³sµ²¹L¨Ó....

¬Ý¤Fstillfish00¤j¤jµoªº ­×§ï«e29F¡÷¶K¤W­È
                                           ­×§ï«á44F¡÷¶K¤W³sµ².
®t²§¦³ÂI¤j.....¬Ý±oÀ´·N«ä¡A¦ý­n¦Û¤vÅÜ´«´N¤@ÀYÃú¤ô¤F[code]Sub ¤pÀ\³æ_SÀ\_¦Û°Ê¿é¤J¸ê®Æ()
'
' ¤pÀ\³æ_SÀ\_¦Û°Ê¿é¤J¸ê®Æ ¥¨¶°
'

'
    Sheets("¼Æ¾Ú").Select
    Range("B25").Select
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
    Sheets("§Ö³t¿é¤J").Select
    Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B2") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("H1:I1").Value
    Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("C3") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("C4:AI4").Value
    Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("D3") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("V1:X1").Value
    Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B4") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("X3:AI3").Value
    Workbooks("¤pÀ\³æ-S.xlsx").Sheets("§Ö³t¿é¤J").Range("B5") = ThisWorkbook.Sheets("¥XÀ\³æ").Range("E1:F1").Value
   
   '´À´«­È¬°³sµ²
  ThisWorkbook.Sheets("¥XÀ\³æ").Activate
    Range("X3:AI3").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("¤pÀ\³æ-s.xlsx").Activate
    Range("B4").Select
    ActiveSheet.Paste Link:=True
   
    End Sub

TOP

¦^´_ 46# starry1314

¦A¥Hstillfish00¤j¤jªºµ{¦¡¨Ó»¡©úThisWorkbook.FullNameªº¸É¥R

    With wsTarget
        .Hyperlinks.Add Anchor:=.Cells(lTargetRow, "R"), _
                        Address:=ThisWorkbook.FullName, _
                        SubAddress:=ThisWorkbook.ActiveSheet.Name & "!" & Rows(lSourceRow).Address, _
                        TextToDisplay:=ThisWorkbook.FullName
        .Cells(lTargetRow, "R").HorizontalAlignment = xlLeft
    End With
¤W­±µ{¦¡¤¤ªº Address:=ThisWorkbook.FullName ªº¥Î³~©M¤W½gªº ThisWorkbook.Name ¥Î³~¤£¤@¼Ëªº¦a¤è
Address¥²¶·«ü¥X©ú½Tªº¸ô®|¡A©Ò¥H¥²¶·¨Ï¥Î ThisWorkbook.FullName
­Y¬O¨Ï¥Î ThisWorkbook.Name «h¥²¶·¥[«e­±¥[¤W¸ô®| ¡A¨Ò¦p"D:\¸ê®Æ§¨\" & ThisWorkbook.Name

TOP

        ÀR«ä¦Û¦b : µÊ®ð¼L¤Ú¤£¦n¡A¤ß¦a¦A¦n¤]¤£¯àºâ¬O¦n¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD