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

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

¦^´_ 35# starry1314
§A«ç»ò®M¥Îªº???
µ{¦¡½Æ»s¨Ó·½ªº¬O·í«eªº¤u§@ªíActiveSheet
¦]¬°§Aªº'¦¬´Ú¸ò¶Ê'¤u§@ªí¤¤¸Ó¸ê®Æ¦æ¦³«ö¶s
«ö¶sIJµo®ÉªºActiveSheet´N¬O¦¬´Ú¸ò¶Ê¤u§@ªí
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¥»©«³Ì«á¥Ñ starry1314 ©ó 2015-5-7 09:53 ½s¿è

¦^´_ 35# starry1314

1.
    Range(.Cells(lSourceRow, "A"), .Cells(lSourceRow, "P")).Copy wsTarget.Cells(lTargetRow, "B") '½Æ»s¶K¤W¸Ó¦æ¸ê®Æ
­×§ï¬°
Range(.Cells(lSourceRow, "¦¬´Ú¸ò¶Ê!A"), .Cells(lSourceRow, "P")).Copy wsTarget.Cells(lTargetRow, "¦¬´Ú¸ò¶Ê!B") '½Æ»s¶K¤W¸Ó¦æ¸ê®Æ

µLªk°õ¦æ..

2.
Worksheets("¦¬´Ú¸ò¶Ê").Range(.Cells(lSourceRow, "A"), .Cells(lSourceRow, "P")).Copy wsTarget.Cells(lTargetRow, "B") '½Æ»s¶K¤W¸Ó¦æ¸ê®Æ
ÁÙ¬O²Ä¤@­Ó¤u§@ªíªº¸ê®Æ

TOP

¦^´_ 29# stillfish00


½Ð°Ý­n«ç»ò«ü©wsheet©O?¦]§Ú®M¥Î¦b§OªºÀÉ®×,µo²{¥L³£¬OŪ¨ú²Ä¤@­Ó¤u§@ªíªº¸ê®Æ

§Ú·Q­n½Æ»sªº¸ê®Æ¤u§@ªí¦WºÙ= ¦¬´Ú¸ò¶Ê

TOP

¥»©«³Ì«á¥Ñ starry1314 ©ó 2015-5-6 22:07 ½s¿è

¦^´_ 33# stillfish00


®¦...­ì¨Ó¬O¼gªº¤Ó¯«¤F¡I¡I²@µL¤ÏÀ³´N¤w¸g¶K§¹¤F¡C¡C¡C¡C

·PÁ¡ã

·Q½Ð°Ý¤@¤U§A­Ì¬O«ç»ò§PÂ_¦p¡@Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Activate
­n¦Awindows«á¤è¥[¤W¦UºØ°ÊºA©Î«ü¥O,§A­Ì¬O«ç»ò§PÂ_­þºØ«ü¥O¸Ó«ç»òªí¥Ü ¦p =  ,() ,"" .[]  ©Î¬O­nÅý¥LŪ¨ú°ÊºA ¦pLPK¤j¤j¦A26F©Ò¦^ÂЪº
A2.­Y¦bQ3°µ²M³æ³o¤]¬O¤@­Ó¦n¤èªk¡A¨äÅܼƪ½«ü¥¦´N¥i¥H¦p¡Gxxx=Range("Q3") ©Îxxx=[Q3]<<³o¸Ì­n¥Î¤¤¬A¸¹(§AÀɮפ¤ªº²Ä¤@­Ó¥¨¶°¥Î¤p¬A¸¹´N¤£¹ï¤F)¡A¤S©Î¬Oxxx=Cells(3,"Q")¡A"¤£¬Ocells(Q3)"

©Î¬O¦³¤°»ò«Øijªº®ÑÄy¦³¦AÁ¿¸ÑÃö©ó³oºØªº»¡©ú©O...®Ñ§½ªº®Ñ³£¬O½d¨Ò·Óªí¾Þ½Ò ¤@ª½¸òµÛ°µ¦Ó¤w.....¨S¦³¸û¸Ô²ÓÁ¿¸Ñ³oºØªº,¹ï«Ü¦h«ü¥O³£¤@ª¾¥b¸Ñ¡I¦b³o­ÓÀÉ®×·|¥Î¡ã¦A¥t¤@­Ó¤èªkªºÀÉ®×´N¤£·|°µÅܳq¤F¡C¡C¡C

TOP

¦^´_ 32# starry1314
¥i¥H¡A¶}±Ò¨âÀɮױҥΥ¨¶°¡A«ö­Ó§O«È¤áªºÂà¸m-·~°È«ö¶s
¥|¤ë¤u§@ªí´N¦³¸ê®Æ¤F
ªþ¥ó:
¦Û°Ê´¡¤J¶W³sµ².zip (431.58 KB)
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

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

¦^´_ 31# stillfish00

¤F¸Ñ~·PÁ»¡©ú

    ½Ð°Ý§A¥Îªº³o²Õ¥N½X¥i¥H¸Õ¶]¦¨¥\¶Ü?§Ú¥Î¤@ª½¨S¦³¤ÏÀ³,¤]¨S»¡¥X¿ù~¤£ª¾¸Ó±q­þ§ä°ÝÃD

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2015-5-6 16:14 ½s¿è

¦^´_ 30# starry1314
©I¥s¸Ó¥¨¶°ªº«ö¶s¡A¸Ó«ö¶s¥ª¤W¨¤®y¼Ð©Ò¦bÀx¦s®æªº¦æ¼Æ
¬O®Ú¾Ú«È¤á¸ê®Æ¤é´Á§PÂ_¡A©Ò¥H4/23¶]§¹·|¶K¨ì¥|¤ë¤u§@ªí
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¥»©«³Ì«á¥Ñ starry1314 ©ó 2015-5-6 14:39 ½s¿è

¦^´_ 29# stillfish00


  ¤£¦n·N«ä~¨Ï¥Îµ²ªG¨S¦³¤ÏÀ³©ö¨S¦³¸õ¥X°»¿ù.....
¥t·Q°Ý¤@¤U
lSourceRow = .Buttons(Application.Caller).TopLeftCell.Row   '³QÂIÀ»ªº¸Ó«ö¶s¦æ¼Æ
¬O·Æ¹«ÂIÀ»ªº©Ò¦b¦ì¸mªº¦æ¼Æ¶Ü?
ÁÙ¬O«ö¶s©Ò¦bªº¦æ¼Æ?

TOP

¦^´_ 27# starry1314
¥i¸Õ¸Õ¬Ý
  1. Sub ¶K¤W¸ê®Æ¦Ü_·~°ÈºÞ²zTEST¦Û°Ê©¹¤U¶K¤@¦æ()
  2. '
  3. ' ¶K¤W¸ê®Æ¦Ü_·~°ÈºÞ²z ¥¨¶°
  4. '
  5.     Dim lSourceRow As Long, lTargetRow As Long
  6.     Dim wsTarget As Worksheet
  7.    
  8.     With ActiveSheet
  9.         lSourceRow = .Buttons(Application.Caller).TopLeftCell.Row   '³QÂIÀ»ªº¸Ó«ö¶s¦æ¼Æ
  10.         Set wsTarget = Workbooks("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Sheets(GetMonthStr(.Cells(lSourceRow, "B"))) '¤é´Á§PÂ_­n¶K¤Wªº¤u§@ªí
  11.         lTargetRow = wsTarget.Cells(Rows.Count, "B").End(xlUp).Row + 1  '­n¶K¤Wªº¦ì¸m
  12.         .Range(.Cells(lSourceRow, "A"), .Cells(lSourceRow, "P")).Copy wsTarget.Cells(lTargetRow, "B") '½Æ»s¶K¤W¸Ó¦æ¸ê®Æ
  13.     End With
  14.    
  15.     'QÄæ³]©w¶W³sµ²¨ì¥»ÀÉ®×
  16.     With wsTarget
  17.         .Hyperlinks.Add Anchor:=.Cells(lTargetRow, "Q"), _
  18.                         Address:=ThisWorkbook.FullName, _
  19.                         SubAddress:=ThisWorkbook.ActiveSheet.Name & "!" & Rows(lSourceRow).Address, _
  20.                         TextToDisplay:=.Cells(lTargetRow, "Q").Text
  21.     End With
  22. End Sub

  23. '¤u§@ªí¥Î¤¤¤å¦r­n¦Û¤v¼gfunctionÂà¡A¦pªG¬O1¤ë¡B2¤ë...¥i¥Î Format(¤é´Á,"m¤ë")Âà´«¸û¤è«K
  24. Function GetMonthStr(inDate As Date) As String
  25.     Select Case Month(inDate)
  26.         Case 1
  27.             GetMonthStr = "¤@¤ë"
  28.         Case 2
  29.             GetMonthStr = "¤G¤ë"
  30.         Case 3
  31.             GetMonthStr = "¤T¤ë"
  32.         Case 4
  33.             GetMonthStr = "¥|¤ë"
  34.         Case 5
  35.             GetMonthStr = "¤­¤ë"
  36.         Case 6
  37.             GetMonthStr = "¤»¤ë"
  38.         Case 7
  39.             GetMonthStr = "¤C¤ë"
  40.         Case 8
  41.             GetMonthStr = "¤K¤ë"
  42.         Case 9
  43.             GetMonthStr = "¤E¤ë"
  44.         Case 10
  45.             GetMonthStr = "¤Q¤ë"
  46.         Case 11
  47.             GetMonthStr = "¤Q¤@¤ë"
  48.         Case 12
  49.             GetMonthStr = "¤Q¤G¤ë"
  50.     End Select
  51. End Function
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 10# lpk187


    ½Ð°Ý Windows("¥Ø«e©Ò¦bÀɦW.xlsm").Activate
¥i§ó§ï¬°
Windows("ThisWorkbook.Name").Activate ¶Ü?

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD