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

¨Ì·í¤U°õ¦æ®É¶¡¡A¦p¦ó¦Û°Ê±N«ü©w¤u§@ªí¦WºÙ­×§ï¦¨¦¹®æ¦¡"1018-¤W¤È"???

·PÁÂGBKEE ª©¥D¡A­×§ïªº½T¥i¦p¤p§Ì§iª¾ªº¨Ì§Ç±N¦P®É¬qªº¤u§@ªí¦Û°Ê§Ç¸¹¼W¥[

¦ý¥i¯à¦³ÂI»~·|¤p§Ìªº·N«ä¤F¡A¤p§Ì¦A»¡©ú¤@¤U
§Ú«ü©wªº¤u§@ªí¬O¥H¨ä¥Lªº¥¨¶°°õ¦æ²£¥Íªº¡A¥i¯à´NÃþ¦ü¤@­Ó"·s­q³æ"¤u§@ªí¡A§Æ±æ°õ¦æ²{½Ð±Ðªº¥¨¶°«á¡A§Y¥i±N¸Ó¤u§@ªí¦WºÙ¦Û°ÊÅܧó¦¨1018-¤U¤È§Î¦¡¡A¦ý·í¤Ñ¥i¯à¤S·|¦A­«·s¶]¤@¦¸¡A¤S¦A²£¥Í¤@¦¸·s­q³æ¤u§@ªí¡A¦p¦A«ö¥¨¶°°õ¦æ®É¡A¦WºÙ§YÅܦ¨1018-¤U¤È(1)¡]²{°õ¦æ¥¨¶°®É¬O­ì¤u§@ªí¤´¦s¦b¡^

TOP

¦^´_ 4# p6703
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub EX()
  3.     Dim xlName As String, Sh As Worksheet, i As Integer
  4.     xlName = Format(Now(), "mmdd") & "-" & Mid(Format(Time(), "C"), 1, 2)
  5.     On Error GoTo R:
  6.     With Sheets.Add(, Sheets(Sheets.Count))
  7.         ActiveSheet.Name = xlName
  8.     End With
  9. R:
  10.     If Err.Number <> 0 Then
  11.         For Each Sh In Sheets
  12.             If InStr(Sh.Name, xlName) Then i = i + 1
  13.         Next
  14.         xlName = xlName & "(" & i & ")"
  15.         Err.Clear
  16.         Resume
  17.     End If
  18. End Sub
½Æ»s¥N½X

TOP

·PÁ¤G¦ìª©¥Dªº«ü¾É,¤p§Ì°õ¦æ¤w¥i²Å¦X»Ý¨D,¦ý¤S¦³¤@©µ¦ù°ÝÃD½Ð±Ð

¦]­ì°õ¦æ®É¤w²£¥Í¤@­Ó1018-¤U¤Èªº¤u§@ªí,·í¦A¦¸°õ¦æ®É§Y¨q¥X¿ù»~(­ì¤u§@ªí¤w¦³¸Ó¦WºÙ)

¬O§_¥i±N¦A¦¸°õ¦æ²£¥Íªº¤u§@ªí¦WºÙ¨Ì§Ç¼W¥[®æ¦¡¬°:1018-¤U¤È(2),1018-¤U¤È(3)....

¦A¦¸·PÁª©¥Dªº±Ð¾É,ÁÂÁÂ...^^

TOP

¦^´_ 1# p6703
  1. Sub Ex()
  2.     ActiveSheet.Name = Format(Now(), "mmdd") & "-" & Mid(Format(Time(), "C"), 1, 2)
  3. End Sub
½Æ»s¥N½X

TOP

¦^´_ 1# p6703


¤u§@ªí¬O°õ¦æ«á·s¥[¤W?
²Ä¤@¬q¬O¦P®É¥[¤W  "¤W¤È","¤U¤È" ¨â¥÷.
²Ä¤G¬q¬O«ö·í¹B¦æ®É®É¶¡¥[¤W
  1. Sub ampm()
  2.     Worksheets.Add
  3.     ActiveSheet.Name = Format(Now(), "MM-DD") & "-¤W¤È"
  4.     Worksheets.Add
  5.     ActiveSheet.Name = Format(Now(), "MM-DD") & "-¤U¤È"
  6. End Sub

  7. Sub bytime()
  8.     Worksheets.Add
  9.     ActiveSheet.Name = Format(Now(), "MM-DD") & "-" & IIf(Hour(Now()) >= 12, "¤U¤È", "¤W¤È")
  10. End Sub
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        ÀR«ä¦Û¦b : µoµÊ®ð¬Oµu¼ÈªºµoºÆ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD