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

¦³Ãö´¡¤J¹Ï¤ùªº°ÝÃD

¦^´_ 24# GBKEE [
¦^ª©¤j¡A³o­Ó»yªk°õ¦æ¤§«á¡A¥t¦sªº¨º­ÓÀɮ׸̭±ÁÙ¬O·|¦³­ì¨Óªº»yªk¦s¦b¡C

TOP

¦^´_ 23# skyutm
20# ªºµ{¦¡½X¦³­×§ïªÅ¶¡
  1. Option Explicit
  2. Sub Ex() '½m²ß¸Õ¸Õ¬Ý   ¬¡­¶Ã¯,¤u§@ªí: ¶·¬Ò¨S¤WÂꪺª¬ºA
  3.     Workbooks(1).Sheets(1).Copy            ' Sheets(1) ½Ð¥ý»s§@VBA¥¨¶°
  4.     'Workbooks("TEST").Sheets("TEST").Copy   ' Sheets(1) ½Ð¥ý»s§@VBA¥¨¶°
  5.     With ActiveWorkbook
  6.         Application.DisplayAlerts = False
  7.         .SaveAs "d:\µL¥¨¶°.xlsx", FileFormat:=51 ' xlExcel8
  8.          '**  °ÆÀɦW:xlsx  ¬°µLVBA¥¨¶° ªº¬¡­¶Ã¯
  9.         Application.DisplayAlerts = False
  10.     End With
  11. End Sub
½Æ»s¥N½X

TOP

¦^´_ 21# GBKEE
ª©¤j§A»~¸Ñ¤F¡A¦]¬°¨º­Ó¤u§@ªí¡u¦¨ÁZÀx¦s¡v¡A¸Ì­±ªº»yªk·|»Ý­n¨ä¥L¤u§@ªíªº¸ê®Æ¡A©Ò¥H¥t¦s·sÀÉ«á¡]­«·s«Ø¥ß¤@­Ó¥u¦³¤u§@ªíªºÀɮס^¡A»yªk´N·|¥X²{¶W¥X¯Á¤Þ­È½d³ò¡]¦]¬°¨ä¥L¤u§@ªí¤£¨£¤F¡^¡A©Ò¥H¨Ã¤£¬O»yªk¤Wªº¿ù»~¡C

TOP

³Ì«áÁÙ¬O­n»¡©ú¤@¤U¡I¤p§Ìªº¦¨ÁZ¨t²Î¨ì¥Ø«e¬°¤î¥i¥H»¡¬O¥þ³¡§¹¦¨¡C¤p§Ìªº°Ñ¦Ò®Ñ¥Ø¬O¡G1.EXCEL¶W¹Ï¸ÑVBA°ò¦Á¿®y2.EXCELVBA¥\¯à¯Á¤Þ¦¡°Ñ¦Ò¤â¥U
¥t¥~­n·PÁªº¬O¨â¦ìª©¤j¡A¤@¦ì¬OGBKEE¤@¦ì¬OHseih¡AÁÙ¦³½×¾Â¤W¦U¦ì¼ö¤ßªº¥ý¶i¡A«Ü¦h»yªkªºª¾ÃÑ¡A¬O¦b®Ñ¤W¨S¦³¿ìªk§ä¨ì¡A¦pªG¨S¦³¤j®aªº¨ó§U¡A¤p§Ì¥i¯à­n¦Aªá¤W§ó¦hªº®É¶¡¤]µLªk§¹¦¨¡A¦b³o­Ó§A§Ú¤£¬ÛÃѪººô¸ô¥@¬É¡A¯u¬OÃø¯à¥i¶Q¤§¨Æ¡A¦b¦¹­n¦A¦¸ªí¹F·PÁ¤§·N¡CÁÂÁ¤j®aªºÀ°¦£¡I¡]¤£¬O±o¼ú·P¨¥°Õ¡^

TOP

¦^´_ 20# skyutm
»yªk°õ¦æ¤§«á¡AÁÙ¬O·|¦³»yªk¿ù»~
¬O­þ¤@¦æµ{¦¡½X¿ù»~,¿ù»~­È¬O¦h¤Ö,©Î¬OªþÀɬݬÝ.

TOP

¦^´_ 19# GBKEE
ª©¤j±z¦n¡I¦Ê¦£¤§¤¤¤S¥´ÂZ¤F¡C±zµ¹ªº»yªk°õ¦æ¤§«á¡AÁÙ¬O·|¦³»yªk¦b¡]©Ò¥H·|²£¥Í¿ù»~¡^¡A¦Ó¥t¥~¤@­Óºô­¶©Ò½Íªº§R°£¤u§@ªíªº¥¨¶°»yªk¡A¦bvba¦n¹³¤£¯à¨Ï¥Î¡A³Ì«á¤p§Ì¶¤F¤@±ø»·¸ô¡C´N¬O¡G
1.¥ý·s¼W¤@·s¤u§@ªí
2.½Æ»s­n½Æ»sªº¤u§@ªí
3.¶K¤W®É¨Ï¥Î¦³±ø¥óªº¶K¤W¿ï¶µ¡]³o¼Ë´N¤£¤W½Æ»s¨ì¤u§@ªí¤ºªº»yªk¤F¡^
PasteSpecial Paste:=xlPasteValues
PasteSpecial Paste:=xlPasteFormats
4.µM«á´N¬O¤§«eªº»yªk
¥þ³¡¬O
Sub macor24()
    '¸Ñ°£«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡õ'
    Sheets("¦¨ÁZÀx¦s").Unprotect Password:="6323"
    ActiveWorkbook.Unprotect Password:="6323"
    '¸Ñ°£«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡ô'
    Sheets.Add After:=Sheets(Sheets.Count)
    Sheets("¦¨ÁZÀx¦s").Activate
    Sheets("¦¨ÁZÀx¦s").Cells.Copy
    Sheets(Sheets.Count).Range("a1").PasteSpecial Paste:=xlPasteValues
    Sheets("¦¨ÁZÀx¦s").Activate
    Sheets("¦¨ÁZÀx¦s").Cells.Copy
    Sheets(Sheets.Count).Range("a1").PasteSpecial Paste:=xlPasteFormats
    Dim a, b, u, v, r, n As String
    a = Sheets("°ò¥»³]©w").Range("a6").Value
    b = Sheets("°ò¥»³]©w").Range("a8").Value
    u = Sheets("°ò¥»³]©w").Range("j1").Value
    v = Sheets("°ò¥»³]©w").Range("j2").Value
    r = "C:\Documents and Settings\Administrator\®à­±\"
    n = a & "¾Ç¦~«×" & b & "¾Ç´Á" & u & "¦~" & v & "¯Z¦¨ÁZÀÉ"
    Sheets(Sheets.Count).Copy
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:=r & n & ".xls", _
    FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
    ReadOnlyRecommended:=False, CreateBackup:=False
    Workbooks(1).Activate
    Sheets(Sheets.Count).Delete
    '«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡õ'
    Sheets("¦¨ÁZÀx¦s").Activate
    ActiveSheet.EnableSelection = xlUnlockedCells
    Sheets("¦¨ÁZÀx¦s").Protect Password:="6323"
    ActiveWorkbook.Protect Password:="6323"
    '«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡ô'
    Workbooks(2).Activate
    ActiveWorkbook.Close savechanges:=True
End Sub
¡]©êºp¡I¤£¬O¯Zªù§Ë©ò°Õ¡A·Q»¡¥H«á¦³¤H»Ý­n¡A¥i¥H°Ñ¦Ò¤@¤U¡C¡^

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-10-14 14:29 ½s¿è

¦^´_ 18# skyutm
°ÆÀɦW .xlsx ¬°2003¥H¤Wªºª©¥» ¦s¬°µL¥¨¶°ªº¬¡­¶Ã¯ À³¸Ó¨S¦³§A»¡ªº°ÝÃD

¦p¬O2003ª©¥i¸Õ¸Õ¬Ý  ¦p°õ¦æ¦³¿ù»~ ½Ð¬Ý  http://gb.twbts.com/index.php?topic=751.8
  1. Sub macor24()
  2.     Dim a, b, u, v, r, n As String, xlVbc As Object
  3.     a = Sheets("°ò¥»³]©w").Range("a6").Value
  4.     b = Sheets("°ò¥»³]©w").Range("a8").Value
  5.     u = Sheets("°ò¥»³]©w").Range("j1").Value
  6.     v = Sheets("°ò¥»³]©w").Range("j2").Value
  7.     r = "C:\Documents and Settings\Administrator\®à­±\"
  8.     n = a & "¾Ç¦~«×" & b & "¾Ç´Á" & u & "¦~" & v & "¯Z¦¨ÁZÀÉ"
  9.     Sheets("¦¨ÁZÀx¦s").Copy
  10.     Sheets(1).Copy
  11.     Application.DisplayAlerts = False
  12.     With ActiveWorkbook
  13.         For Each xlVbc In .VBProject.VBComponents
  14.             xlVbc.CodeModule.DeleteLines 1, xlVbc.CodeModule.CountOfLines
  15.         Next
  16.         .SaveAs Filename:=r & n & ".xls"
  17.     End With
  18.     ThisWorkbook.Close savechanges:=True
  19. End Sub
½Æ»s¥N½X

TOP

¦^´_ 16# GBKEE
©êºp¡Iª¯»L¬O¦³¥Øªºªº¡AÁÙ¦³¤@­Ó¥¼¸Ñ¶}ªº°ÝÃD­n½Ð±Ð¡I
¤p§Ìªººc·Q¬O·Q­n¦b¦¨ÁZ¿é¤J§¹¦¨¤§«á¥t¦s·sÀÉ¡A¤]¦b¥»½×¾Â©Mºô¸ô¤W°µ¹L¥\½Ò¡A­×§ï«áªº»yªk¦p¤U
Sub macor24()
Dim a, b, u, v, r, n As String
    a = Sheets("°ò¥»³]©w").Range("a6").Value
    b = Sheets("°ò¥»³]©w").Range("a8").Value
    u = Sheets("°ò¥»³]©w").Range("j1").Value
    v = Sheets("°ò¥»³]©w").Range("j2").Value
    r = "C:\Documents and Settings\Administrator\®à­±\"
    n = a & "¾Ç¦~«×" & b & "¾Ç´Á" & u & "¦~" & v & "¯Z¦¨ÁZÀÉ"
    Sheets("¦¨ÁZÀx¦s").Copy
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:=r & n & ".xlsx", _
    FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
    ReadOnlyRecommended:=False, CreateBackup:=False
    ThisWorkbook.Close savechanges:=True
End Sub
¤]¦p¹w´Á¯ë¥i¥H¦b®à­±¦s¦¨¥t¤@­Ó·sÀÉ¡A¦ý¬O°ÝÃD¨Ó¤F¡A¦]¬°³o­Ó¤u§@ªí¤º¦³vbaµ{¦¡»yªk¡A©Ò¥H¥t¦s·sÀÉ«á¡A«K·|¥X²{°ÝÃD¡A´N¬O¦³¨Ç»yªk·|¶W¥X½d³ò¡A·Q½Ð±Ð¤@¤U¡A¦b½Æ»s¤u§@ªí®É¦³µL¿ï¶µ¡A¥i¥H¤£¥Î½Æ»s¨ì¸Ì­±ªº»yªk¶Ü¡H¦A¦¸·PÁ¡I

TOP

¦^´_ 16# GBKEE

°Ú¡I§ÚÀ´¤F¡Aª©¤j´N¬O¤ñ¸ûÁo©ú¡]ª¯»L¡^¡A§â¶K¤Wªº¹Ï¤ù¥[¤W½s¸¹¡A´N¥i¥H·Ç½T±±¨î¤w¶K¤W¹Ï¤ùªº²¾°Ê¦ì¸m¡A¤]´N¤£·|²¾°Ê¨ì¨ä¥L¹Ï¤ù¤F¡C

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-10-13 08:24 ½s¿è

¦^´_ 15# skyutm
  1. With Sheets("¦¨ÁZ³æ")
  2.     For i = 0 To j
  3.              .Paste Destination:=.Range("d" & 22 + 26 * i)
  4.     Next i
  5.              .Pictures.ShapeRange.IncrementLeft 45
  6.              .Pictures.ShapeRange.IncrementTop 5
  7.            '**** ¤]·|¸òµÛ²¾°Ê*****       .Pictures -> Sheets("¦¨ÁZ³æ")ªº©Ò¦³¹Ï¤ù
  8.     End With
½Æ»s¥N½X
¸Õ¸Õ¬Ý
  1. With Sheets("¦¨ÁZ³æ")
  2.     For i = 0 To j
  3.              .Paste Destination:=.Range("d" & 22 + 26 * i)
  4.               a = .Pictures.Count
  5.              .Pictures(a).ShapeRange.IncrementLeft 45
  6.              .Pictures(a).ShapeRange.IncrementTop 5
  7.     Next i
  8.     End With
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¦³¤ß´N¦³ºÖ¡A¦³Ä@´N¦³¤O¡A¦Û³yºÖ¥Ð¡A¦Û±oºÖ½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD