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

[µo°Ý] EXCEL¦C¦L®É,¬O§_¥i¦L¥X¬y¤ô¸¹?

[µo°Ý] EXCEL¦C¦L®É,¬O§_¥i¦L¥X¬y¤ô¸¹?

¦]¤½¥q»Ý¨D­n³]­p¤@¥÷ªí³æ¡A·í¤¤¦³¤@­ÓÄæ¦ì¬O¬y¤ô¸¹¡]¬y¤ô¸¹½s½X¡GS1101001)
S¤£ºÞ¡B11¥Nªí¦è¤¸¦~¡B01¥Nªí¤ë¥÷¡B001´N¬O¬y¤ô¸¹
ªí®æ¤º®e³£¬O¦L¥X«á¦Û¦æ¶ñ¼g¡A¦ý¦L¥X®É·|±a¥X¬y¤ô¸¹
¦pªG§Ú·Q­nª½±µ¦b¦C¦Lªº¦a¤è¿ï¾Ü¦C¦L¥÷¼Æ¡A¬y¤ô¸¹´N·|¦Û°Ê¨ì´X¸¹¡A¦Ó¤U¦¸¦C¦L®É¡A¤S·|¦Û°Ê±µµÛ¤U¥h
µ{¦¡­n«ç»ò¼g?«æ«æ«æ!!!  :funk:

¦^´_ 1# vita

³o¸ò§A¤u§@¬yµ{·|¦³ÃöÁp
°²¦p¤@¤Ñ¥u¦L¤@¦¸
¨º°_©l¸¹¤£·|¦³°ÝÃD
­Y¤@¤Ñ¤À¦h§å¦C¦L¨º­n§â¤W¦¸µ²§ô½X°O¦b¤u§@ªí¤º
¥H§Q¤U¦¸¦C¦L¨ú±o°_©l½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦]¬°§Ú¤@¦¸­n¥ý¦L¥X¦n´X¥÷¡A¥i¯à¬O¾ã­Ó¤ëªº¼Æ¶q
¦Ó¥B³oªí®æ¡A¤£¬O¥u¦³¤@­Ó¤H¦b¨Ï¥Î¡A©Ò¥H¬°¤F©ÈÁקK¦³ªí³æ¸¹½X­«ÂСA©Ò¥H¤~·Q°Ý¬O§_¦³¤½¦¡©Îµ{¦¡¥i¥H¨Ï¥Î

ÁÂÁÂ

TOP

¦^´_ 3# vita
°²³]B1¬°¬y¤ô½s¸¹¦ì¸m
¨C¤Ñ¦Û°ÊÂk¹s±q1¶}©l½s½X
  1. Private Sub CommandButton1_Click()
  2. k = InputBox("¦C¦L¥÷¼Æ")
  3. If Left([B1], 6) <> Format(Date, "yymmdd") Then [B1] = Format(Date, "yymmdd") & "000"
  4. x = Val(Right([B1], 3))
  5. For i = 1 To k
  6. [B1] = Format(Date, "yymmdd") & Format(x + i, "000")
  7.    Sheet1.PrintPreview
  8. Next
  9. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¤£¦n·N«ä¡A¦]¬°§ÚÁÙ¤£·|¥ÎVBA¡A©Ò¥H¬O¤£¬O¥u­n§â§Aªºµ{¦¡COPY¶i¥h¡A´N¦n¤F¶Ü?
ÁÙ¬O§ÚÁÙ­n°µ¤°»ò¨ä¥Lªº°Ê§@?

ÁÂÁÂ!

TOP

¦^´_ 5# vita
¬Ý¹Ï¾Þ§@
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ howard822 ©ó 2012-3-23 00:22 ½s¿è

¤£¦n·N«ä¡ã§Ú¬OEXCEL·s¤â..¨S¦³µ{¦¡·§©À..
³z¹L·j´Mª¾¹D¶Q¯¸¡ã·Q½Ð±Ð«ü¾É§Ú¤@¤U¡ã
§Úªº»Ý¨D¬O¨C¤Ñ³£¦³¤TÁp³æ³øªí­n¥X³f¡A
£¸±i³øªí£¸­ÓSHEET..£¸±i³øªí¦C¦L£¸¦¸¡ã¥i¬O¬y¤ô¸¹­nÄ~Äò²Ö¿n¡ã

¨º§Ú§â¸Óµ{¦¡½X§ï¦¨«á¡G

Private Sub CommandButton1_Click()
If Left([I1], 6) <> Format(Date, "yymmdd") Then [I1] = Format(Date, "yymmdd") & "000"
x = Val(Right([I1], 3))
[I1] = Format(Date, "yymmdd") & "-" & Format(x + 1, "000")
   Sheet1.PrintPreview
End Sub

¦b­ì©lSHEET¥i¥H¥¿±`ªí²{¡A¨S°ÝÃD¡C
-----------------------------------------------------------------
¥i¬O§Ú±NSHEET½Æ»s(Ctrl+¥ªÁä©ì¦²)¤§«á~
¥\¯àµLªk¥¿±`¨Ï¥Î¤F¡ã
½Ð°Ý§ÚÀ³¸Ó­n«ç»ò°µ¡H
¦X©ê¤§¤ì¡A¥Í©ó²@¤ì¡F¤E¼h¤§»O¡A°_©ó²Ö¤g¡F¤d¨½¤§¦æ¡A©l©ó¨¬¤U

TOP

½Ð°Ýª©¥D¥i¥H«ü¾É¤p²Ä¤@¤U¶Ü¡H
¦X©ê¤§¤ì¡A¥Í©ó²@¤ì¡F¤E¼h¤§»O¡A°_©ó²Ö¤g¡F¤d¨½¤§¦æ¡A©l©ó¨¬¤U

TOP

¦^´_ 8# howard822
¤£ª¾¹D³o¬O¤£¬O§A­nªº,¸Õ¸Õ¬Ý

1.¥[¤J¤@±iªÅ¥Õªº¤u§@ªí,¤u§@ªí¦WºÙ¬°"­p¼Æ"


2.sheet1¤u§@ªí¼Ò²Õ
  1. Private Sub CommandButton1_Click()
  2. With Sheets("­p¼Æ")
  3.   If Left(.[I1], 6) <> Format(Date, "yymmdd") Then
  4.      For Each Sh In Sheets
  5.        Sh.[I1] = ""
  6.      Next
  7.      .[I1] = Format(Date, "yymmdd") & "-000"
  8.   End If
  9.   x = Val(Right(.[I1], 3))
  10.   If ActiveSheet.[I1] = "" Then
  11.      .[I1] = Format(Date, "yymmdd") & "-" & Format(x + 1, "000")
  12.      ActiveSheet.[I1] = .[I1]
  13.   End If
  14.   ActiveSheet.PrintPreview
  15. End With
  16. End Sub
½Æ»s¥N½X
3.¨ä¥L¤u§@ªí³£¥Îsheet1¥h½Æ»s(ctrl+¥ªÁä)

4.¾Þ§@¬Ý¬Ý

TOP

¦^´_ 8# howard822


    ¦b­ì©lSHEET¥i¥H¥¿±`ªí²{¡A¨S°ÝÃD¡C
³o¥y¸Ü·N«äÀ³¸Óªí¥Üµ{¦¡½X¬O¥¿½T¤F
¦ý¬O¡A§A»¡½Æ»s«á´N¤£¦æ
§Ú²q¬OSheet1.PrintPreviewªº°ÝÃD
Me.PrintPreview´N·|ÀHµÛ¤u§@ªí¼Ò²ÕÅܰʦC¦L¤u§@ªí¤F
¤£ª¾¹D§Aªº°ÝÃD¬O§_¦p¦¹
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¡i®É¤é²öªÅ¹L¡j¤@­Ó¤H¦b¥@¶¡°µ¤F¦h¤Ö¨Æ¡A´Nµ¥©ó¹Ø©R¦³¦hªø¡C¦]¦¹¥²¶·»P®É¶¡Ävª§¡A¤Á²ö¨Ï®É¤éªÅ¹L¡C
ªð¦^¦Cªí ¤W¤@¥DÃD