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

Ãö©ó¶Ç¦^¤é´Áªº°ÝÃD

·Ó§AªºÀɮקڰõ¦æ¨S°ÝÃD
§AÀ³¸Ó¬O¦b²Ä¤@¦Cªº­È¬O«D¤é´Á²£¥Í¿ù»~
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_  f3202
Hsieh µoªí©ó 2010-6-12 15:59


ÁÂÁ Hsieh ª©¥D
°õ¦æ®É¦b " a.Offset(1, 0) = DatePart("ww", a)"
¥X²{
°õ¦æ¶¥¬q¿ù»~'5':
µ{¦¡©I¥s©Î¤Þ¼Æ¤£¥¿½T
·Ð½Ðª©¥D¤F ÁÂÁÂ

TOP

ÁÂÁÂ victorl ¤j¤j
¦³¤p¤p¥X¤J
¯à§_¥ý¦bA1´¡¤J¤@¦C
µM«á¦bA2¶}©lÅã¥Ü¶g¼Æ
ÁÙ¬O·PÁ±z

TOP

¦^´_ 1# f3202
  1. Sub nn()
  2. If [A2] <> "" Then Rows(2).Insert
  3. For Each a In Range([B1], [B1].End(xlToRight))
  4.    a.Offset(1, 0) = DatePart("ww", a)
  5. Next
  6. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 1# f3202

ª½±µ¦bRow 3 §e²{
Sub wk()
    For Each dd In Range([B1], [B1].End(xlToRight))
        Cells(3, dd.Column) = Format(dd, "ww", vbMonday, vbFirstFullWeek)
    Next
End Sub

»yªk»¡©ú: Format(expression[, format[, firstdayofweek[, firstweekofyear]]])
firstdayofweek - ©w¸q¬P´Á´X¬O¤@©Pªº¶}©l
firstweekofyear -  ©w¸q²Ä¤@©Pªº±ø¥ó
³o¨â°Ñ¼Æ¤§³]©w·|¼vÅTµ²ªG³á¡A½Ð°Ñ¦Ò "Excel Help"»¡©ú

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD