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

[µo°Ý] ½Ð°ÝExcel¶×¥X»P¶×¤Jªº°ÝÃD

[µo°Ý] ½Ð°ÝExcel¶×¥X»P¶×¤Jªº°ÝÃD

¦U¦ì¤j¤j~
·Q½Ð°Ý¤@¨Ç°ÝÃD~

¨Ò:
§Úªº¥DÀɬOA.xls §Ú­n±N¨ä¤¤ªº Sheet1 ¸ò Sheet3 ¶×¥X¦¨·sªºÀÉ®× B.xls ¨Ã¦b¬¡­¶Ã¯¤Î¤u§@ªí¤W¥[¤W±K½X.

¦Ó»Ý­nªº®É­Ô¥i¥H±NB.xls ªº¸ê®Æ¶×¤J¦^A.xls ªº Sheet4 ¸ò Sheet5 ½Ð°Ý¦³¿ìªk¶Ü?

¦^´_ 1# pspcorn


QA1    A.xls¤ºªºsheet1 sheet3 ¬O§_»Ý«O¯d? ÁÙ¬O·h²¾?
QA2    A.xls¤ºªºsheet4 sheet5 ¸ê®Æ¬O³sµ²©Î½Æ»s?
  1.     ¤u§@ªí1.Range("a1:t90").Value = "ªí1": ¤u§@ªí3.Range("a1:t90").Value = "ªí3"
  2.     Sheets(Array("¤u§@ªí1", "¤u§@ªí3")).Select
  3.     Sheets("¤u§@ªí3").Activate
  4.     Sheets(Array("¤u§@ªí1", "¤u§@ªí3")).Copy
  5.     Sheets("¤u§@ªí1").Select
  6.     Cells.Select
  7.     Selection.Copy
  8.     Windows("¬¡­¶Ã¯1").Activate
  9.     Range("A1").Select
  10.     ActiveSheet.Paste
  11.     Windows("¬¡­¶Ã¯2").Activate
  12.     Sheets("¤u§@ªí3").Select
  13.     Cells.Select
  14.     Application.CutCopyMode = False
  15.     Selection.Copy
  16.     Windows("¬¡­¶Ã¯1").Activate
  17.     Sheets("¤u§@ªí5").Select
  18.     ActiveSheet.Paste
  19.     Windows("¬¡­¶Ã¯2").Activate
  20.     ActiveWindow.Close
½Æ»s¥N½X

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 2# mark15jill

ÁÂÁ¤j¤jªº´£¥Ü~
A1ªºSheet1,Sheet3¬O­n«O¯dªº~¦]¬°¸Ì­±¸ê®ÆÁÙ¬O·|·s¼W¤Î­×§ï~¥u¬O¶×¥X¦¨B1®É­nÂê¤W±K½X~

A1ªºSheet4,sheet5,¥u¬O§âB1Àx¦sªº´N¸ê®Æ°µ¬d¸ß~©Ò¥H½Æ»s©Î³sµ²³£¥i¥H~¦]¬°¬O¬d¸ß~©Ò¥H¤£·QÅý§O¤H­×§ï¸ê®Æ~©Ò¥H­nÂê¤W±K½X~¥i¬Oexcelªº¶×¤J¥~³¡¸ê®Æ´N¤£¯à³sµ²¤F~

TOP

¦^´_ 3# pspcorn

Q 1   ­Y³æ¯Â¥u­n¬¡­¶Ã¯½Æ»s¡A«h ¥i Sheets(Array("¤u§@ªí1", "¤u§@ªí3")).Copy   'copy ¬°½Æ»s  cut ¬°°Å¤U
Q 2   ¸óÀɮ׬d¸ß ¦L¶H¤¤ ½×¾Â¤º¦³«Ü¦hÃþ¦ü©«¡A¥i¥H°Ñ¦Ò¬Ý¬Ý
Q 3   ­Y¬O ¨â­ÓÀÉ®× ¤@­Ó¸ê®Æ®wÀÉ®×   ¤@­Ó¤¶­±ÀÉ®×(¬d¸ß+¿é¤J)     
¦pªG¬O¤p§Ì¡A¤p§Ì·|¿ï¾Ü §Ë¦¨¤@­Ó UserformÀɮסA§Ë¦b ¤¶­±Àɮתº¶}±Ò®i¶}
¨Ã¥B¥Î Âù­«±K½X( ¸ê®Æ®wÀÉ®× + ¤¶­±ÀÉ®× )Âê

¦n³B¡G
1.¦h­««O»Ù
2.¾Þ§@¤¶­±¤W·|¤ñ¸û²M·¡

Ãa³B¡G
1.­Y¹J¨ì ¥¨¶°¤£¶}ªº ´N¥ß¨è¯}¥\..
2.µ{¦¡·|§ó½ÆÂø

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

        ÀR«ä¦Û¦b : ®É®É¦n¤ß´N¬O®É®É¦n¤é¡C
ªð¦^¦Cªí ¤W¤@¥DÃD