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

[µo°Ý] ¤p¾Ç¥Í°ÝÃD 2 (ÁÂÁÂ)

[µo°Ý] ¤p¾Ç¥Í°ÝÃD 2 (ÁÂÁÂ)

¥»©«³Ì«á¥Ñ binargoo ©ó 2011-7-13 01:30 ½s¿è

¦p¦ó°O¿ý¨Ã«O¯d¨ú¼Ë¨Ó·½ªº³Ì¤j­È©Î³Ì¤p­È¡H

³] A1 = ®É¶¡ , B1 = ¨ú¼Ë¨Ó·½ , C = °O¿ý
¨ú³Ì¤j­È¬°¨Ò

  A1=15:20:01  ,  B1=100  ,  C1=100
  A1=15:20:12  ,  B1=150  ,  C1=150
  A1=15:20:15  ,  B1=130  ,  C1=150
  A1=15:20:34  ,  B1=180  ,  C1=180
  A1=15:21:05  ,  B1=220  ,  C1=220
  A1=15:21:33  ,  B1=180  ,  C1=220
  A1=15:21:41  ,  B1=300  ,  C1=300
  A1=15:22:02  ,  B1=250  ,  C1=300


  B1 ¼Æ­È¤@ª½ÅÜ¡AC1¥u°O¿ý«O¯d³Ì¤j­È¡C
  ½Ð°Ý°ª¤â¤j¤j C1 ¼gªk¡HÁÂÁ¡I
¥u¬°¾Ç²ß©Ò¥Hµo°Ý

·PÁ mark15jill ¤j ¹ïVBA¤¶²Ð¡A¤p¾Ç¥Í¥²§V¤O¾Ç²ß¡C
¥u¬°¾Ç²ß©Ò¥Hµo°Ý

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2011-5-26 10:34 ½s¿è

¥H¤U¸ê®ÆÂà¸ü¦Ü   http://yuan.yocjh.kh.edu.tw/%B1%D0%A7%F7/vba/index.htm

1.VBA ²¤¶

¡@¡@VBAªº¥þ¦W¬O¡uVisual Basic for Application¡v¡A¦W¦r¦n¹³¥i¥H«Ø¥ß³æ¿W°õ¦æªºÀ³¥Î¨t²Î¡A¨ä¹ê¥¦¬OªþÄÝ©óOffice¦U³nÅ骺¥¨¶°¡AVBAµ{¦¡½X¥u¥i¥H¦b°ÆÀɦW¬°DOC¡NMDB¡NXLS¡NPPTµ¥Àɮפº°õ¦æ¡C

¡@¡@¦³¾Ç¹LVisual Basicªº¤H¤]¦]¦¹¦³ºÖ¤F¡A¦]¬°MicroSoft·L³n¤½¥q±qOffice97ªº¦U­Ó³nÅ餤³£¤w¸g¶}©l¤ä´©VBA¡A¨Ï±oVBA¦¨¬°¦@³qªº¥¨¶°»y¨¥¡A¥­®É¥u­n¾Ç²ß¤@®M§Y¥i¦bOfficeªºÀô¹Ò¤¤¥HVBAÀH¤ß©Ò¼¤ªº±±¨îOffice¡C

¡@¡@¤£½×VBAªº¨¤¦â¬O¥¨¶°©Îµ{¦¡³]­p¡A¨ä©w¦ì¦b¥H©¹³£»á¬°Àª§¼¡A¨ã¦³Visual Basic¶}µo¸gÅ窺µ{¦¡³]­p®v¡A±`»{¬°¥HVisual Basic¶}µoÀ³¥Î¨t²Î¤£°÷¤ô·Ç¡A¥B¹ïÃþ¦pOfficeµ¥¡A´X¥G¤£Ä@Æp¬ã¡F¦Ó¥u·|¾Þ§@Word¡BExcelµ¥³nÅ餧¨Ï¥ÎªÌ¤S¤£À´µ{¦¡³]­p¡A¦]¦¹Ãø¥H¶i¤JVBAªº·µ°ó¡C³o¨âºØ¦]¯À§¨Âø¤§¤U¡A¨Ï±oVBA¦bOffice¦U³nÅ餺¡A¦¨¬°¸û¤Ö¤H¨Ï¥Îªº¤u¨ã¡C¦ýVBAÁÙ¬O¦³¥¦ªº§®¥Î¦s¦b¡A¥H¤U¬O¨Ï¥ÎVBAªº¼Æ¶µ¯SÂI¡G

¶}µoOfficeÀ³¥Î³nÅé¡G²{¤µÅé¿nºÓ¤jµL¤ñªº³nÅé¡Aµøµ¡ªº½ÆÂø¡N«ö¶sµ¥¡A¥²·P¨ìµL±q¤U¤â¡C³Ì¤è«Kªº´N¬O¨Ï¥ÎVBA¡A¦p±N¤£»Ý­nªº¥\¯àªí©Î¤u¨ã¦C¤©¥HÁôÂáA¶È´£¨Ñ¥²­n¤º®e¦bµøµ¡¤W§Y¥i¡C©Ò¥Hµ¥©ó¬O¥H²{¦³Àô¹Ò§ó§ï¬°¨ã¯S©w¥Î³~ªº¤u§@Àô¹Ò¡A¥i´î¤Ö¤@¯ë¨Ï¥ÎªÌ»{¬°¹q¸£¹L©ó½ÆÂøªººÃ¼{¡C

°ÊºA§ó§ï©Î±±¨îÀɮסGVBAªº³Ì¤j¯S¦â¬O´£¨Ñ¦hºØ¡uª«¥ó¡v¡A³o¨Çª«¥ó´N¬O¦U³nÅéÀɮ׮榡ªº¤º®e¡A¨Ò¦p¦bExcelªºVBA¤º¦³Workbook(¬¡­¶Ã¯)¡NWorksheet(¤u§@ªí)¡F¦bWord¤º¦³Document(¤å¥ó)µ¥ª«¥ó¡A¨C¤@ª«¥ó³£¦³¼Æ¶q¤£µ¥ªºÄݩʤΤèªk¡AÆ[©À»PVB¤¤ªº±±¨î¶µ¬Û¦P¡C

»PVB¬Û¥h¤£»·ªº¨ç¼Æ¡G¥i»¡°£¤FµLªk½sĶ¥~¡A»P¥¿¦¡ªºµ{¦¡³]­p-Visual Basic¬Û®tµL´X¡A¥B¦h¤F¥i³B²z¦U³nÅéÀɮ׮榡ªº¦Ê¾lºØª«¥ó¡C

TOP

¦^´_ 10# Hsieh


    ÁÂÁÂHsieh ª©¥D

­ì¨Ó¬O±Ä³oºØ¤è¦¡¡AÃø©Ç§Ú¤£·|¡A¯uÁÂÁ±zÅo!:D

TOP

¦^´_ 9# jimmuLu


   §A¦bB1³]¤@­Ó¤½¦¡=INT(RAND()*100)
¦bC1³]¤½¦¡=MAX(B1,C1)
­Y¥¼¤Ä¿ï¤ÏÂйBºâ«h·|²£¥Í´`Àô°Ñ·Ó
¤Ä¿ï¤ÏÂйBºâ«á«öF9´ú¸Õ¬Ý¬Ý¬O§_·|¶Ç¦^B1ªº³Ì¤j­È
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# Hsieh


    Hsieh ª©¤j

¤£¦n·N«ä¡A§Ú´¿¨Ì±zªº¸Ñªk°µ¹L¡A¥i¬O©¹¤U©Ô¤§«á¡A¸ò­ìBÄ檺¸ê®Æ³£¤@¼Ë(¤w¨ì¿ï·Q¤Ä¿ï¤ÏÂйBºâ)¡A¤£ª¾¸Ó¦p¦ó­×¥¿¡A

¤~¦³¿ìªk±o¨ìµª®×

³Â·Ð°Õ

TOP

¦¬¨ì¤FÁÂÁ¶Wª©¤j¡A¦ý¬O VBA ¬O¤°¦Ì¸J¿|¡H¨D¾Ç¶¥¬q¾Ç®Õ®Ú¥»¨S±Ð¡I¡q¨º®É¦n¹³¤~­è¦³¹q¸£¡r½Ð­ì½Ì§ÚLKK¡A¦³¨S¨ä¥L¤èªk¡HÁÂÁ¡I
¥u¬°¾Ç²ß©Ò¥Hµo°Ý

TOP

Àx¦s®æ¤¤ªº¤å¦r¶¡­nÁקK¨Ï¥ÎªÅ¥Õ,¥i¥Î®æ¦¡¤¤ªº¤À´²¹ï»ô逹¨ì¦³ªÅ¥Õªº®ÄªG.
¤å¦r¤ñ¹ï®É,ªÅ¥Õ¤]·|³Q¤ñ¹ï,©Ò¥H³Ì¦n¥ÎCOPYªº§_«h¦h¤@­ÓªÅ¥Õ´N·|¬OFALSE
D7=IF(B7=A1,MAX(D7,G5),MIN(D7,G5))

TOP

¦^´_ 6# jimmuLu


    ¨ç¼ÆÀ³¸Ó¬OC2=MAX(B2,C1)¸û²Å¦X¸Óµª®×§a!:)
¦pªG¡A¼Ó¥D¬O¨Ï¥Î3­Ó¦ì¸m¨Ó°µ³o­pºâ¡A·íµM±zªº¤½¦¡´N¦¨¥\¤F
¦ý¬O¡A¨Ì¼Ó¥D±Ô­z¥L¬O¥ÎC1¨Ó°O¿ýB1¸g¹Lªº¸ê®Æ¨ú³Ì°ª
©Ò¥H¤~»Ý­n³]©w¤ÏÂйBºâ¡A¨Ó¸Ñ¨M´`Àô°Ñ·Óªº°ÝÃD¡C
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 7# binargoo
DDE°ÝÃD¥ú¬O­n¥Î¨ç¼Æ©Î°ò¥»³]©w¹F¦¨§Aªº§PÂ_»Ý¨D¬O°µ¤£¨ìªº
¦h¥b­n§Q¥ÎVBA¨Ó°O¿ý¨C­Ó¶Ç¦^ªº¸ê®Æ¡AµM«á¥Î¨ç¼Æ¨Ó¤ÀªR­pºâ³o¨Ç¾ú¥v¸ê®Æ
¨ìµ{¦¡°Ï¥h§ä§ä³o¤è­±¸ê°T
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD