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

§Q¥ÎVBA ªí³æ»s§@¸U¦~¾ä?

§Q¥ÎVBA ªí³æ»s§@¸U¦~¾ä?

·Q½Ð°Ý¦U¦ì¤j¤j
¦pªG§Ú·Q§Q¥ÎVBAªí³æ¥\¯à¨Ó»s§@¸U¦~¾ä
¦ý´N¬O¤£ª¾¹D¦p¦óµÛ¤â

ºô¸ô¤W¯à·j´M¨ìªº¸ê·½
³£¬O§Q¥Î¨ç¼Æ¦bSheet ¤W­±¹Bºâ
¦³¸Õ¹LÂಾ¨ìªí³æ¤W­±¥h°õ¦æ

«o¤£ª¾¹D¤Ö¤F¤°»ò
ªí³æªº°t¸m¦p¤U


§Æ±æ¦³°ª¤H«üÂI°g¬z¡A·P¿E¤£ºÉ>"<
Jared

¦^´_ 19# mark15jill


    (@@)...¦n¦hDim
    ¬Ý±o²´ªá¼º¶Ã...
    «Øij¥i¥H¥Î²³æªºA¡BB¡BC¡BD¨Ó©R¦W(u_u)
Jared

TOP

¦^´_  mark15jill
§A¦n¹³Â¶¤F¤@°é.
¦^´_  mark15jill
»s§@¶§¾ä¸U¦~¾ä»P¼í2¤ë¬O¨S¦³Ãö«Yªº
GBKEE µoªí©ó 2013-3-27 13:17



    ·PÁ ¨â¦ì¤j¤jªº±Ð¾É¡A¤p§Ì¨ü±Ð¤F¡C

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-3-27 13:33 ½s¿è

¦^´_ 19# mark15jill
§A¦n¹³Â¶¤F¤@°é.
¦^´_ 21# mark15jill
»s§@¶§¾ä¸U¦~¾ä»P¼í2¤ë¬O¨S¦³Ãö«Yªº
  1. Sub Ex()
  2.     Dim D As String
  3.     D = "2013/2/21"
  4.     MsgBox D & " «á¤@¤Ñ " & DateSerial(Year(D), Month(D) + 1, 0)
  5.     '¨C¤ëªº«á¤@¤Ñ
  6.     MsgBox Format(D, "aaa")
  7. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 21# mark15jill
OFFICE 2010¥H«á¤w¸g¨ú®ø¤F¤é¾ä±±¨î¶µ¤¸¥ó
­pºâ¬P´Á´X?»P¶|¦~µLÃö¡A¦]¬°Windows¬O¥H§Ç¦C¸¹­pºâ¤é´Á¡A¦Ó¬P´Á´N¬O¥H7¤Ñ¬°¤@´`Àô
¦Ü©ó¹A¾ä¶|¦~¡A³W«h¤Ó¹L½ÆÂø¡A¥²¶·°t¦X¸`®ð­pºâ¡A­Ó¤H¤~²¨¾Ç²LµLªk´£¥X¨ãÅé°µªk
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_  mark15jill

¸U¦~¾ä¦b²{¦bªº¨t²Î¤º¤w¸g¬O¤º«Ø¤F
¤£¥ÎVBA¤é´Á¨ç¼Æ­pºâ¬P´Á´X¡Aª½±µ¥Î°ò·Ç¤é´Á¶¡¶Z ...
Hsieh µoªí©ó 2013-3-27 09:37



    Heish¤j¤j ¡A¦L¶H¤¤¡A¦n¹³2003 ÁÙ¬O2007 ÁÙ¬O2010 ¨S¦³©Ò¿×ªº ¤é¾ä  ³o¤¸¥ó..
    ¥t¥~¡A­Y¥Î ¤£¥ÎVBA¤é´Á¨ç¼Æ­pºâ¬P´Á´X¡Aª½±µ¥Î°ò·Ç¤é´Á¶¡¶Z ...  
     «Ü®e©ö²£¥Í¡A¼í2¤ëªº±¡§Î¡C
     ¦Ó¥B ­Y¬O¤S²o§è¨ì »Ý­n»s§@¹A¾ä¸U¦~¾ä¡A¨º·|¦³ ¼í¹A¾ä¤ëªº°ÝÃD
      ¨þ¨þ

        ©êºp¡A¤p§ÌµLª¾¡A¦h¨¥¤F¡C

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2013-3-27 09:46 ½s¿è

¦^´_ 19# mark15jill

¸U¦~¾ä¦b²{¦bªº¨t²Î¤º¤w¸g¬O¤º«Ø¤F
¤£¥ÎVBA¤é´Á¨ç¼Æ­pºâ¬P´Á´X¡Aª½±µ¥Î°ò·Ç¤é´Á¶¡¶Z¨Óºâ´N¹ï¤F
¨t²Î¤ä´©³Ì¤p¤é´Á1900/1/1¬O¬P´Á¤é¨ä¤é´Á§Ç¦C¸¹¬°1
  1. d = CDate(InputBox("¿é¤J§¹¾ã¦è¤¸¤é´Á¦r¦ê", , Date))
  2. MsgBox IIf((d - 1) Mod 7, (d - 1) Mod 7, 7)
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_  mark15jill
     ¬P´Á¿ù¶Ã: §A¬O¥Î¦ó¨ç¼Æ
¶Ç¤Wµ{¦¡½X¬Ý¬Ý
GBKEE µoªí©ó 2013-3-26 17:02





    ¥ô¦ó°ª²`¨ç¼Æ³£¨S¥Î¨ì... XDD

            Dim K1, K2, K3 As Integer
            Dim yy, dd, mm, wek, dss, dds31, dds30, dds2, dds28, dds29 As Integer
            Dim uny, unm, und, unym, unmd As String
            Dim weeks(6) As String

            DTP1 = DaTiPi.Text
            uny = InStr(DTP1, "¦~") - 1 : unm = InStr(1, DTP1, "¤ë") : und = InStr(DTP1, "¤é") - 1
            unym = Mid(DTP1, uny + 1, unm - 5) : unmd = Mid(DTP1, unm + 1, und - 1)

            K1 = InStr(1, DTP1, "¦~") : K2 = InStr(1, DTP1, "¤ë") : K3 = InStr(1, DTP1, "¤é")

            yy = Mid(DTP1, 1, K1 - 1) '¦~
            mm = Mid(DTP1, K1 + 1, (K2 - K1) - 1) '¤ë
            dd = Mid(DTP1, K2 + 1, (K3 - K2) - 1) '¤é
            dss = 30 + ((mm + (mm > 7)) Mod 2) + (2 + (yy Mod 4 = 0) + (yy Mod 100 = 0) * (yy Mod 400 <> 0)) * (mm = 2) '¤é ¤G¤ë±M¥Î
            dds31 = 31 : dds30 = 30  'dds ¬°  31¤é ©M 30¤é
            dds2 = dss '¤é ¤G¤ë±M¥Î

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 17# mark15jill
   
<¤Ñ¼Æ¹ï  ¬P´Á¿ù¶Ã>
¬P´Á¿ù¶Ã: §A¬O¥Î¦ó¨ç¼Æ
¶Ç¤Wµ{¦¡½X¬Ý¬Ý
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_  mark15jill


¤j¤j
«á¨Óµo²{¹Bºâ¦¡³£¿ù¤F
­pºâ¥X¨Óªº¤Ñ¼Æ³£¤£¹ï....>
Jared µoªí©ó 2013-3-26 14:09



Ãö©ó¤Ñ¼Æ
³o­Ó§Ú«á¨Ó¦³µo²{
¦Ó¥B¯«©_ªº¬O....

§Ú¥ÎVB.NET ©MVBA  ¥Î¦P ­pºâ¦¡¥h¶]..
µ²ªGVB.NET §¹¥þ¥¿½T..
VBA·|²ö¦W¨ä§®¿ù¶Ã..<¤Ñ¼Æ¹ï  ¬P´Á¿ù¶Ã>

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD