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

½Ð±Ð»yªk¤Wªº°ÝÃD¡H

¦^´_ 1# skyutm
  1. '******ThisWorkbook¼Ò²Õªºµ{¦¡½X********
  2. Option Explicit

  3. '**¬¡­¶Ã¯¶}±Ò®É¦Û°Ê°õ¦æ
  4. Private Sub Workbook_Open()
  5.     ¦Û°Ê½Æ»s¦¨ÁZ
  6. End Sub
  7. '**¬¡­¶Ã¯:¤u§@ªí¤¤²¾°Ê®É¦Û°Ê°õ¦æ
  8. Private Sub Workbook_SheetActivate(ByVal Sh As Object)
  9.     If Sh.Name = "Á`¦¨ÁZ" Then ¦Û°Ê½Æ»s¦¨ÁZ
  10. End Sub
  11. Sub ¦Û°Ê½Æ»s¦¨ÁZ()
  12.     Sheets("°ê¥­®É").Range("Q2:Q22").Copy Sheets("Á`¦¨ÁZ").Range("C2")
  13. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 1# skyutm

­n¥ý¤Á´«¤u§@ªí¡A©Ò¥H­n¦h¤@¥ySheets("Á`¦¨ÁZ").Activate¡A§¹¾ãµ{¦¡½X:
  1. Sub ¦Û°Ê½Æ»s¦¨ÁZ()
  2. Sheets("°ê¥­®É").Range("Q2:Q22").Select
  3. Selection.Copy
  4. Sheets("Á`¦¨ÁZ").Activate
  5. Sheets("Á`¦¨ÁZ").Range("C2").Select
  6. ActiveSheet.Paste
  7. End Sub
½Æ»s¥N½X
Excel VBAºô­¶¸ê®Æ¦¬¶°±Ð¾Ç:
http://forum.twbts.com/thread-20848-1-1.html

TOP

        ÀR«ä¦Û¦b : ­n§åµû§O¤H®É¡A¥ý·Q·Q¦Û¤v¬O§_§¹¬üµL¯Ê¡C
ªð¦^¦Cªí ¤W¤@¥DÃD