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

[µo°Ý] ¨Ì¨ä¥LÀx¦s®æªº±ø¥ó¨ú¥N¦r¦ê

[µo°Ý] ¨Ì¨ä¥LÀx¦s®æªº±ø¥ó¨ú¥N¦r¦ê

¥»©«³Ì«á¥Ñ savoir ©ó 2013-10-11 13:41 ½s¿è

¤½¥qªº·|­p¤p©j¨C¨ì¤ë©³´N­nªá¤@¾ã¤Ñ¨ú¥N¦U©±¯Z§O¥N¸¹¤~¯à¶×¤J¤H¨Æ¨t²Î¡A¦Ó¥B«Ü±`¥X¿ù¡A
©Ò¥H§Ú§Æ±æ¯àÅý¦o­Ì¨Ï¥Îvba¦Û°Ê¨Ì±ø¥ó¨ú¥N¥N¸¹¡A¦b¦U¤j½×¾Â¡Bºô¯¸·j´M¡Bª¦¤å¦ü¥G§ä¤£¨ì²Å¦X»Ý¨Dªº¤¶²Ð¡A
¦]¦¹¸Û¤ßµo°Ý¡A§Æ±æ¯à§ä¥X¸Ñ¨M¤§¹D¡AÅý·|­p¤j©n­Ì¤£·|¤@¨ì¤ë©³·Q¨ì¯Zªí´N¤ß·W·W^^

¥H¤U¬O¨ú¥N«eªº¯Zªí¡A¦U©±±Æ¯Z³£¬Oª½±µ¨Ì·ÓA¡BB¡BC¡B¥ð¤U¥h±Æ¡A
¦ý¦]¬°°²¤é¤W¤U¯Z®É¶¡¤£¦P¨t²Î»Ý­n¯Z§O¥N¸¹ÃѧO¡G


¶g¤@~¶g¤­¡GA¯Z=A1¡FB¯Z=B1¡FC¯Z=C1
¶g¤»¡B©P¤é¡GA¯Z=A2¡FB¯Z=B2¡FC¯Z=C2
¡u¥ð¡v¤£¤©¨ú¥N¡C

¨ú¥N§¹¦¨«áªº¯Zªí·|Åܦ¨³o¼Ë¡G


¦]¬°¥­±`¥u¨Ï¥ÎExcel¨ç¼Æ¥\¯à¡A«Ü¤Ö±µÄ²vba¡A¥Î¥¨¶°¿ý»s«áªºµ{¦¡¬O³o¼Ë¡G
  1. Sub ¨ú¥N()
  2. '
  3. ' ¨ú¥N ¥¨¶°
  4. '
  5. ' §Ö³tÁä: Ctrl+i
  6. '
  7.     Cells.Replace What:="A", Replacement:="A1", LookAt:=xlPart, SearchOrder _
  8.         :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
  9.     Cells.Replace What:="B", Replacement:="B1", LookAt:=xlPart, SearchOrder _
  10.         :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
  11.     Cells.Replace What:="C", Replacement:="C1", LookAt:=xlPart, SearchOrder _
  12.         :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
  13. End Sub
½Æ»s¥N½X
¦ý³o¼Ë¨S¿ìªk¨Ì·Ó¶g¤»¡B¶g¤é¦³¤£¦Pªº¯Z§O¥N¸¹¡A
·Q½Ð«e½ú­Ì«ü¾ÉÀ³¸Ó¦p¦ó³]©w±ø¥ó¨ú¥N¦¨¤£¦Pªº¥N¸¹¡A·P¿E¤£ºÉ¡I

¯Zªí¨ú¥N.rar (10.14 KB)

20131011103516066.png (8.01 KB)

20131011103516066.png

  1. Sub ¨ú¥N()
  2.     For Each c In ActiveSheet.UsedRange
  3.         If c.Value Like "[A,B,C]" Then
  4.             If Weekday(Cells(1, c.Column), 2) > 5 Then
  5.                 c.Value = c.Value & "2"
  6.             Else
  7.                 c.Value = c.Value & "1"
  8.             End If
  9.         End If
  10.     Next
  11. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ savoir ©ó 2013-10-11 15:07 ½s¿è

¦^´_ 2# oobird
·PÁÂoobird«e½úªº¦^ÂСA¶g¤»¡B¶g¤éªº°ÝÃD¸Ñ¨M¤F¡I

°²¦p¦³¬Y¨Ç©±¬O¶g¤­¡B¶g¤»¤W¤U¯Z®É¶¡¤£¦P¡A
¯Z§O¥N¸¹¬OA¯Z=A2¡FB¯Z=B2¡FC¯Z=C2¡A
­n¦p¦ó°µ²Ó³¡ªº­×§ï©O¡H

TOP

¥»©«³Ì«á¥Ñ oobird ©ó 2013-10-11 16:30 ½s¿è

§A±o§â­n¨D»¡²M·¡¤~¦³¿ìªk¡C
¸Õ¸Õ§âIf Weekday(Cells(1, c.Column), 2) > 5 Then
§ï¬°If Weekday(Cells(1, c.Column), 2) > 4 Then
¬Ý¬Ý¬O¤£¬O§Aªº·N«ä¡C

TOP

¥»©«³Ì«á¥Ñ savoir ©ó 2013-10-23 19:20 ½s¿è

¦^´_ 4# oobird

·PÁª©¤j¦^ÂСI
Á|§Ú­Ì¬Y­Ó±MÂd¹ê»Ú¤W¯Z®É¶¡¬°¨Ò¡A

¶g¤@~¶g¥|¡GA¯Z=A1¡BB¯Z=B1¡BC¯Z=C1
¶g¤­¡GA¯Z=A1¡BB¯Z=B2¡BC¯Z=C3
¶g¤»¡GA¯Z=A3¡BB¯Z=B2¡BC¯Z=C5
¶g¤é¡GA¯Z=A3¡BB¯Z=B1¡BC¯Z=C2

¬õ¦r³¡¤À»P­ì¥»A1¡BB1¡BC1ªº¥N¸¹¦³©Ò¤£¦P¡A
¦p¦Pªþ¥óªº¨ú¥N«e¬O­ì¥»ªºA¡BB¡BC¯Z¡A¨ú¥N«á«h¦³¤FA1¡BA3¡BB1¡BB2¡BC1¡BC2¡BC5µ¥¥N¸¹¡A
·PÁª©¤j¸Ñ´b¡I

¯Zªí¶×¤J®æ¦¡(¨ú¥N«e¡þ«á).rar (8.2 KB)

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD