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

¦b¤u§@ªí°õ¦æ¥t¤@®æ¤u§@ªíªº¥¨¶°

¦b¤u§@ªí°õ¦æ¥t¤@®æ¤u§@ªíªº¥¨¶°

½Ð±Ð¦U¦ì¤j¤j:
³o¬O°õ¦æ¨ä¥L¬¡­¶Ã¯ªº¥¨¶°µ{¦¡
Sub Sample()
    Application.Run "Àɮצì¸m!Module1.Macro1"
End Sub
¦pªG§Ú·Q§ï¦¨¦b¦P¤@­Ó¤u§@ï¤W²Ä¤@­Ó¤u§@ªí¤W°õ¦æªº¤G­Ó¤u§@ªí¤Wªº¥¨¶°
½Ð°Ý­n¦p¦ó¼g³o­Óµ{¦¡
ÁÂÁÂ
michael

c_c_lai ¤j¤j:
ÁÂÁ±z¨º»ò¥Î¤ßªºÁ¿¸Ñ
Åý§Ú¾Çªº«Ü¦h
¤£¹L³oµ{¦¡¬O·Ç¤j¤j³]­pªº
Åý§Ú¥[¤F«Ü¦h«ö¶s
«Ü¤£¦n·N«ä,¦Ó¥B³o¨Ç«ö¶sµ{¦¡³£¬O½Ñ¦ì¤j¤j±Ðªº
michael

TOP

  1. Sub ¤u§@ªí_·s¼WªÑ²¼¦WºÙ()
  2. Dim ShtN$, Sht As Worksheet
  3. Set uRng = ActiveCell
  4. If uRng.Column <> 3 Or uRng.Row < 5 Or uRng = "" Then MsgBox "¡°½Ð¥ý¿ï¨ú­ÓªÑ¥N¸¹¡I": Exit Sub
  5. ShtN = uRng.Value
  6. On Error Resume Next
  7. Set Sht = Sheets(ShtN)
  8. If Not Sht Is Nothing Then MsgBox "¤u§@ªí¦WºÙ¤w¦s¦b! ": Exit Sub
  9. Sheets("®æ¦¡").Copy after:=Sheets(2)
  10. With ActiveSheet
  11.     .Name = ShtN
  12.     .[B1] = ShtN
  13.     .[D1] = uRng(1, 2)
  14. End With
  15. End Sub


  16. Sub ¤u§@ªí_§R°£³Ì«á¤@­Ó()
  17. Application.DisplayAlerts = False
  18. With Sheets(Sheets.Count)
  19.     If .Name <> "§Y®É¸ê°T" And .Name <> "®æ¦¡" Then
  20.        If MsgBox("½T©w­n§R°£¡e" & .Name & "¡f¤u§@ªí¡H ", 1 + 32 + 256) = vbOK Then .Delete
  21.     End If
  22. End With
  23. End Sub
½Æ»s¥N½X
Xl0000354.rar (28.89 KB)

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-4-30 08:20 ½s¿è

¦^´_ 9# chairles59
B. ±N¡y·s¼WªÑ²¼¦WºÙ¡zµ{¦¡ (·s¼WªÑ²¼¦WºÙ())
   ©ñ¸m©ó ¡u¼Ò²Õ¡v(¦¹³B½d¨Ò¸m©ó Module3) ¤º

©I¥s¤è¦¡¤@  (³o«K¬O luhpro ¤j¤j±Ð§Aªº¤èªk)
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     ·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X
©I¥s¤è¦¡¤G
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     Call ·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X
©I¥s¤è¦¡¤T
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     Call Module3.·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X

TOP

¦^´_ 9# chairles59
³o¥i¤À¦¨¨â³¡¤À¨Ó»¡©ú¡AµL½×¬O¦óºØ¤è¦¡µª®×¬O¤@­Pªº¡A
®t§O¥u¦b©óªí¹Fªº¤è¦¡¦]¤H¦Ó²§¡G
A. ±N¡y·s¼WªÑ²¼¦WºÙ¡zµ{¦¡ (·s¼WªÑ²¼¦WºÙ())
   ©ñ¸m©ó ¡u¤u§@ªí1 (®æ¦¡)¡v ¤º

©I¥s¤è¦¡¤@¡G
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     Sheets("®æ¦¡").·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X
©I¥s¤è¦¡¤G¡G
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     Call Sheets("®æ¦¡").·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X
©I¥s¤è¦¡¤T¡G
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     ¤u§@ªí1.·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X
©I¥s¤è¦¡¥|¡G
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.     Call ¤u§@ªí1.·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X

TOP

¦^´_ 8# luhpro


    ÁÂÁ¤j¤jªº±Ð¾É
:)
michael

TOP

¦^´_ 7# chairles59
§Aªº Sheets("®æ¦¡") ¸Ì¨Ã¨S¦³ ·s¼WªÑ²¼¦WºÙ ³o­Ó Sub,
©I¥s·íµM·|¥¢±ÑÅo...

§A¥u­n§â  Sheets("®æ¦¡").  ®³±¼,
§ï¬°ª½±µ©I¥s "·s¼WªÑ²¼¦WºÙ" §Y¥i:
  1. Sub ½Æ»s®æ¦¡¤u§@ªí()
  2.   ·s¼WªÑ²¼¦WºÙ
  3. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# luhpro

luhpro ¤j¤j:
¤£¦n·N«ä§Ú¦b¶}µo¤H­û°õ¦æ°»¿ù,«öF8®É¥L§i¶D§Ú
°õ¦æ¶¥¬q¿ù»~438
ª«¥ó¤£¤ä´©¦¹ÄݩʩΤèªk

    ¦ý¬O§Ú¦bSheet1(§Y®É¸ê°T)·s¼WªÑ²¼«ö¶s«o¯à°õ¦æ
michael

TOP

¥»©«³Ì«á¥Ñ chairles59 ©ó 2016-4-29 21:21 ½s¿è

[attach]24108[/attach][attach]24108[/attach]¦^´_ 5# luhpro

luhpro ¤j¤j:
¦n¹³¤]¤£¦æ
§Ú§âÀ£ÁYÀɮתþ¤W
½Ð¤j¤jÀ°§Ú¬Ý¤@¤U«ö¶s7ªº¥¨¶°¨º¸Ì¦³°ÝÃD

ÁÂÁÂ

ps:·Ç¤j¤j¤£¦n·N«ä
±zªºµ{¦¡§Ú¥[¤F¦n¦h­Ó«ö¶s

ªÑ²¼.rar (49.56 KB)

michael

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2016-4-29 00:08 ½s¿è
¦^´_  luhpro


    ¤j¤j:
´ú¸Õ¦n¹³¤£¦æ
¥L¥X²{
°õ¦æ¶¥¬q¿ù»~9
°}¦C¯Á¤Þ¶W¥X½d³ò

Call Sheets("Sheet2").cc

chairles59 µoªí©ó 2016-4-28 22:08

§A#1 ªº±Ô­z¬O :

¦pªG§Ú·Q§ï¦¨¦b¦P¤@­Ó¤u§@ï¤W²Ä¤@­Ó¤u§@ªí¤W°õ¦æªº¤G­Ó¤u§@ªí¤Wªº¥¨¶°

¬Ý¤£¥X¨Ó  ¥¨¶°©Ò¦b¤u§@ªíªº¦WºÙ,
¤Î·Q°õ¦æªº¥¨¶°¦WºÙ,
©Ò¥H§Ú¥u¯à¦Û¤v­q,
§A­n§ï¦¨§AÀɮפ¤ªº¦WºÙ,
¦Ó¤£¬Oª½±µ·Ó·h.

·|¥X²{ °}¦C¯Á¤Þ¶W¥X½d³ò ªº¿ù»~¬O¥¿±`ªº,
¦]¬°§AªºÀɮ׸̨S¦³¦WºÙ¬° Sheet2 ªº¤u§@ªí.

Call Sheets("Sheet2").cc
¤W¦¡¤¤:
1. Sheet2 ¬O¤u§@ªí¦WºÙ, ½Ð±a¤J§A·Q­n°õ¦æªº¥¨¶°©Ò¦bªº¤u§@ªí¦WºÙ.
2. cc ¬O¥¨¶°¦WºÙ, ½Ð±a¤J§A·Q­n°õ¦æªº¥¨¶°ªº¦WºÙ.

TOP

        ÀR«ä¦Û¦b : ¯¸¦b¥b¸ô¡A¤ñ¨«¨ì¥Ø¼Ð§ó¨¯­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD