°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·ҳ£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
ÖÐΪÇåµ¥±íÖеÄA¡¡µ½¡¡G¡¡ÁУ¬¼´º¯ÊýÖеġ¨Çåµ¥£¡A£ºG¡¨£¬row¡num¡¡Îª±»²éÕÒÇøÓòÖеÄÐÐÐòÊý¼´º¯¡¡
ÊýÖеġ¡INT£¨£¨ROW£¨£©£«4£©/3£©£¬col¡num¡¡Îª±»²éÕÒÇøÓòÖеÄÁÐÐòÊý¼´º¯ÊýÖеġ¡COLUMN£¨£©¡£µÚ2¡¢5¡¢¡¡
8¡£¡£¡£¡£¡£¡£¡£ÐеÄÐкŴúÈë¡¡INT£¨£¨ROW£¨£©£«4£©/3£©ÕýºÃÊÇ¡¡2¡¢3¡¢4¡£¡£¡£¡£¡£¡££¬COLUMN£¨£©ÔÚ¡¡A¡¡ÁÐΪ¡¡1¡£Òò´Ë¡¡
¹«Ê½¡¨=INDEX£¨Çåµ¥£¡A£ºG£»INT£¨£¨ROW£¨£©£«4£©/3£©£»COLUMN£¨£©£©¡¨ÊäÈë¡¡A¡¡Áкó£¬A2¡¢A5¡¢A8¡£¡£¡£¡£¡£¡£µ¥Ôª¡¡
¸ñµÄÖµÕýºÃÊÇÇåµ¥¡¡A2¡¢A3¡¢A4¡£¡£¡£¡£¡£¡££»µ¥Ôª¸ñµÄÖµ¡£ÕâÑù£¬±íµÄÍêÕûµÄ¹«Ê½Ó¦Îª¡¡
¡¨=IF£¨MOD£¨ROW£¨£©£»3£©=0£»¡¨¡¨£»IF£¨MOD£¨ROW£¨£©£»3£©=1£»Çåµ¥£¡A1£»INDEX£¨Çå¡¡
µ¥£¡A£ºG£»INT£¨£¨ROW£¨£©£«4£©/3£©£»COLUMN£¨£©£©£©£©¡¨¡£°Ñ´Ë¹«Ê½ÊäÈëA1¡¡µ¥Ôª¸ñ£¬È»ºóÏòÏÂÏòÓÒÌî³äµÃ¡¡
µ½ÁËÍêÕûµÄ¹¤×ÊÌõ±í¡£¡¡¡¡¡¡
ΪÁ˱í¸ñµÄÃÀ¹Û»¹Ó¦¶Ô¸ñʽ½øÐÐÉèÖã¬Ò»°ãÏ°¹ß°üÀ¨±êÌâ¡¢ÐÕÃûµÈÎÄ×ÖÔÚµ¥Ôª¸ñÖÐҪȡÖУ¬Êý¡¡
×ÖÒªÓÒÖã¬Êý×ÖСÊýµãλÊýÒ²Ó¦Ò»Ö£¬»¹Óиù¾Ý¸öÈ˵İ®ºÃÉèÖñ߿ò¡£±¾±í¸ñÖ»Ðè¶ÔÒ»ÖÁÈýÐС¡
µÄµ¥Ôª¸ñ½øÐÐÉèÖã¬È»ºóͨ¹ýÑ¡ÔñÐÔ¸ñʽÉèÖÃÍê³ÉÈ«±íµÄÉèÖᣡ¡¡¡¡¡
±¾¹¤×÷²¾µÄÌصãÊÇ¡¡1¡¢²»¶ÔÇåµ¥±í½øÐвÙ×÷±£³ÖÇåµ¥¹¤×÷±íµÄÍêÕû£¬2¡¢È«¹¤×÷±íÖ»ÓÐÒ»¸ö¹«¡¡
ʽͨ¹ýÌî³äµÃµ½È«±íÊ®·Ö·½±ã¡£¡¡¡¡
ÀýÈ磺Îҵĵ¥Î»²»´ó²»Ð¡£¬ÓС¡200¡¡¶àºÅÈË¡£×î½üÁìµ¼ÒªÇó°Ñÿ¸öÔ±¹¤¸öÈ˵Ť×ÊÇé¿ö´ò³öÀ´£¬¡¡
·Ö·¢¸øÿλԱ¹¤¡£Ã¿¸öÔ±¹¤µÄ¹¤×ÊÌõÉÏÖ»ÄÜÓÐÁ½ÐÐÄÚÈÝ£ºÒ»ÐÐÊÇ·Ö½âµÄÏîÄ¿ÄÚÈÝ£¬Èç»ù±¾¹¤×Ê¡¢¡¡
¸Úλ¹¤×Ê¡¢×ܼƵȵȣ»ÁíÒ»ÐÐÊǶÔÓ¦µÚÒ»ÐеľßÌ幤×ÊÊý¶î¡£¡¡¡¡
¿ÉÒÔÕâÑù½â¾ö£ºSheet2¡¡¡¡¡¡¡¡
1¡£Îª¡¡A1¡¡ÃüÃûΪ¡¡K¡¡¡¡¡¡¡¡
2¡£Îª¡¡A3£ºA250¡¡ÃüÃûΪ¡¡XX¡¡¡¡¡¡¡¡
´Ó¡¡A3¡¡ÌùÉÏÖ÷Ë÷Òý£»Êý¾ÝÒªÁ¬ÐøÖм䲻ÔÊÐíÓпոñ¡¡¡¡¡¡¡¡
¡¡¡¡
3¡£Ð´¹«Ê½=VLOOKUP£¨K£»DATA£»2£»0£©¡¡¡¡¡¡¡¡
Óм¸¸ö×Ö¶Îд¼¸¸ö£»Î»ÖÃËæÄú¸ßÐË°Ú¡¡¡¡¡¡¡¡
4¡£¡¡Òþ²ØA¡¡À¸¡¡¡¡¡¡¡¡
*********************************************************************************¡¡
*****¡¡¡¡¡¡¡¡
Sub¡¡¡¡´òÓ¡£¨£©¡¡¡¡¡¡¡¡
Application¡£ScreenUpdating¡¡=¡¡False¡¡'ÆÁÄ»²»¸üС¡¡¡¡¡¡¡
Dim¡¡c¡¡As¡¡Object¡¡'Ðû¸æ¡¡c¡¡Îª¶ÔÏó£»Çë×¼±¸¿Õ¼ä¡¡¡¡¡¡¡¡
£§xx£§¡£Select¡¡'Ñ¡È¡±äÁ¿·¶Î§¡¡¡¡¡¡¡¡
Set¡¡c¡¡=¡¡ActiveCell¡¡'É趨¡¡c¡¡¶ÔÏóΪ×÷Óõ¥Ôª¸ñ¡¡¡¡¡¡¡¡
Do¡¡Until¡¡IsEmpty£¨c¡£Value£©¡¡'×÷¡¡Do¡¡Ñ»·Ö±µ½ÎÞֵʱÌø³ö¡¡¡¡¡¡¡¡
£§k£§¡£Value¡¡=¡¡c¡£Value¡¡¡¡¡¡¡¡
Set¡¡c¡¡=¡¡c¡£Offset£¨1£»¡¡0£©¡¡'É趨¡¡c¡¡ÍùϽøÒ»¸ñÔÙÈ¡Ö÷Ë÷ÒýÖµ¡¡¡¡¡¡¡¡
Sheets£¨¡¨Sheet2¡¨£©¡£PrintPreview¡¡'¹¤×÷±íÖ±½Ó´òÓ¡¸Ä¡¡PrintOut¡¡¡¡¡¡¡¡
Loop¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡366¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡367¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
End¡¡Sub¡¡¡¡
ÁíÒ»»Ø´ð£ºÎÒÊÇ×öÈËʹÜÀíµÄÒ²Óöµ½¹ýÄãµÄÎÊÌ⣻ÎÒÓÃÈçÏ·½·¨½â¾öÊ®·Ö·½±ã£»¶ø²»ÓÃÈκδúÂë¡£¡¡¡¡¡¡¡¡
·½·¨µÄÔÀíÊǵ÷Õû´òÓ¡»úµÄ×Ô¶¨ÒåÖ½ÕÅ´óСµ½Ç¡ºÃÏÔʾһ¸öÈ˵Ť×ÊÌõµÄ´óС£»Çë°´ÈçÏ£º¡¡¡¡¡¡¡¡
È磺Îҵġ¡excel¡¡¹¤×Ê±í½«ÏîÄ¿ÄÚÈÝ·ÅÔÚµÚÒ»¡¢¶þÐУ¬ÐиßΪ¡¡20¡£1¡¡£¬Óá¡a4¡¡Ö½ºáÏò´òÓ¡¡¡¡¡¡¡¡¡
1¡¢ÔÚÒ³ÃæÉèÖÃÖн«ÉÏ¡¢Ï±߾࣬ҳü¡¢Ò³½Å¾ùÉèΪÁ㣬¡¡¡¡¡¡¡¡
ÔÚÒ³ÃæÉèÖ᡹¤×÷±í¡¡¡¶¥¶Ë±êÌâÐС¡¡¡¡¡ÖÐÊäÈë¡¡¡¡1£º2£»¼´½«·ÅÔÚ¡¡¡¡¡¡¡¡
µÚ¡¡¡¡Ò»¡¢¶þÐеÄÏîÄ¿ÄÚÈÝÉè³Éÿҳ±êÌâÐС¡¡¡¡¡¡¡
´òÓ¡·½ÏòΪºáÏò¡¡¡¡¡¡¡¡
2¡¡¡¢¡¢ÔÚÎļþ¡¡¡¡´òÓ¡¡¡¡ÊôÐÔ¡¡¡Ö½ÕÅ¡¡¡×Ô¶¨ÒåÖн«Ö½Õŵġ¡¡¡¡¡¡¡
¿í¶È=280¡¡¡¡¡¡£¨µ¥Î»£ººÁÃ×£©¡¡¡¡¡¡¡¡
³¤¶È=2970¡¡¡¡¡¡£¨µ¥Î»£ººÁÃ×£©¡¡¡¡¡¡¡¡
3¡¢´òӡʱ¿ÉÑ¡¡¡1¡¡¡200¡¡Ò³£¬¼´¿É´òÓ¡¡¡200¡¡È˵Ť×ÊÌõ£¬Ò»ÕÅ¡¡a4¡¡¿É´ò¡¡10¡¡ÈË¡¡¡¡¡¡¡¡
È·¶¨ºóÔ¤ÀÀ£¬¿Éµ÷Õûϱ߾àÖÁÿҳÏÔʾһÕŹ¤×ÊÌõ¡¡¡¡
ÎҵĽâ¾ö°ì·¨£ºÎÒÖ»ÓÃÁËÒ»¸ö¹«Ê½£º¡¡¡¡
if£¨mod£¨row£¨£©£»3£©=0£»¡¨¡¨£»if£¨mod£¨row£©£¨£©£»3£©=1£»sheet1£¡a1£»index£¨sheet1£¡a£ºg£»int£¨£¨row£¨£©£«4/3£©£»cllolumn£¨£©£©£©£©¡¡
ÄãÊÔһϡ¡¡¡
£¨½âÊÍ£ºint£¨£¨row£¨£©£«4/3£©¡¡¡¡ÊÇÕâ¸öÒâ˼£ºÒ»¸ö¹¤×Ê±í£¬ÓÐÁбêÌ⣬½ÓÏÂÀ´Êǹ¤×ʼǼ¡£¶øÎÒÔÚ´Ë±í¡¡
»ù´¡ÉÏ£¬¼ÓÒ»¸ö×Ô¶¯Éú¡¡¡¡³ÉµÄ¹¤×Ê¡¡¡¡Ìõ±í£¬¡¡¡¡mod£¨row£¨£©£»3£©=0¡¡£¬Ôڴ˱íÉÏÓÃÕâ¸ö±íʾµÚÈýÐб£Áô¿Õ¡¡
°×ÐУ»¡¡¡¡if£¨mod£¨row£©£¨£©£»3£©=1£»sheet1£¡a1£¬±íʾÊǵÚÒ»ÐÐÈ¡±êÌâÁУ»¡¡¡¡
index£¨sheet1£¡a£ºg£»int£¨£¨row£¨£©£«4/3£©£»column£¨£©¡¡£©ÕâÊǹؼüµÄµØ·½£ºÊÇÖ¸Ëü²»ÊǵÚÒ»ÐУ¬Ò²²»Èý±¶Êý¡¡
µÄÐУ¬ÊǼǼ¡¡¡¡Ðеıíʾ£¬ÄãÏëµÚ¶þÐÐÏÔʾ¼Ç¼£¬Ôò¡¡2£«4/3=2¡¡¡¡È¡¹¤×Ê¡¡¡¡±íµÄµÚ¶þÐмǼ£»µÚÎå¡¡
ÐÐÏÔʾ¼Ç¼£¬Ôò¡¡5£«4/3=3¡¡¡¡È¡¹¤×Ê¡¡¡¡±íµÄµÚÈýÐмǼ£»µÚ°ËÐÐÏÔʾ¼Ç¼£¬Ôò¡¡8£«4/3=4¡¡¡¡È¡¹¤×Ê¡¡¡¡±í¡¡
µÄµÚËÄÐмǼ£»µÚʮһÐÐÏÔʾ¼Ç¼£¬Ôò¡¡11£«4/3=5¡¡¡¡È¡¹¤×Ê¡¡¡¡±íµÄµÚÎåÐмǼ£»Õâ¸ö¹«Ê½Äã¿ÉÒÔ¡¡
¸ù¾Ý¾ßÌåÇé¿ö±ä»¯£ºÓÈÆäÊÇ£¨£¨row£¨£©£«4/3£©£»¡¡ÖеÄ4¡¡Õâ¸öÊý×Ö£¬¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¶¨ÖƵ¥Ôª¸ñÊý×ÖÏÔʾ¸ñʽ¡¡¡¡
¡¡¡¡¡¡¡¡¶¨ÖƵ¥Ôª¸ñÊý×ÖÏÔʾ¸ñʽ£¬ÏÈÑ¡ÔñÒª¶¨ÖƵĵ¥Ôª¸ñ»òÇøÓò£¬¡·µ¥»÷Êó±êÓÒ¼ü¡·µ¥Ôª¸ñ¸ñʽ¡·¡¡
Ñ¡ÔñÊý×Ö¡®Ñ¡Ïî¡·Ñ¡Ôñ¡¡×Ô¶¨Òå¡®¡·ÔÚ¨DÀàÐÍ¡¬¡¡ÖÐÊäÈë×Ô¶¨ÒåµÄÊý×Ö¸ñʽ¡£¡¡¡¡
¡¡¡¡¡¡¡¡ÈçºÎÊäÈë×Ô¶¨ÒåµÄÊý×Ö¸ñʽ£ºÐèÒªÏÈÖªµÀ×Ô¶¨Òå¸ñʽÖÐÄÇЩ³£Ó÷ûºÅµÄº¬Ò⣬¾ßÌå¿ÉÒÔÏÈ¡¡
²»Ñ¡Ôñ¡¡×Ô¶¨Òå¡®£¬¶øÑ¡ÔñÆäËüÒÑÓзÖÀà¹Û¿´Ê¾Àý¡®£¬ÒÔ±ãµÃÖª·ûºÅµÄÒâÒå¡£¡¡¡¡
¡¡¡¡¡¡¡¡±ÈÈ磺ÏÈÑ¡Ôñ°Ù·Ö±È¡®È»ºóÂíÉÏÑ¡Ôñ¡¡×Ô¶¨Òå¡®£¬»á·¢ÏÖÀàÐÍ¡®ÖгöÏÖ0¡£00£¥¡®£¬Õâ¾ÍÊÇ°Ù·Ö¡¡
±ÈµÄ¶¨Òå·¨£¬°ÑËü¸Ä³ÉСÊýλ3¡¡Î»µÄ°Ù·Ö±ÈÏÔʾ·¨Ö»Òª°Ñ0¡£00£¥¡®¸Ä³É0¡£000£¥¡®¾ÍºÃÁË£¬°ÑËü¸Ä¡¡
³ÉºìÉ«µÄ°Ù·Ö±ÈÏÔʾ·¨Ö»Òª°Ñ0¡£00£¥¡®¸Ä³É¡¡£§ºìÉ«£§0¡£00£¥¡®¾ÍºÃÁË¡£¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¹ØÓÚÊý¾ÝÒýÓõÄÎÊÌâ¡¡¡¡
ÔÚÒ»¸ö¹¤×÷²¾ÖУ¬¼ÙÈç¡¡A¡¡¹¤×÷±íÖеĵ¥Ôª¸ñ¡¡E8¡¡±»¡¡B¡¡¹¤×÷±íÖеÄijµ¥Ôª¸ñÒýÓã¬ÏÖÔÚÓÉÓÚ¡¡A¡¡¹¤¡¡
×÷±íÖвåÈëÁËÐУ¬ÔÀ´µÄ¡¡E8¡¡ÏÖÔÚ¿ÉÄÜÊÇ¡¡E28£»½á¹ûÔì³É¡¡B¡¡¹¤×÷±íÒýÓÃÊý¾Ý´íÎó£¬ÇëÎÊ£ºÈçºÎ¿É¡¡
ÒÔʹB¡¡¹¤×÷±íÖеÄÒýÓÃËæ×Å¡¡A¡¡±íµÄ±ä»¯Ò²×÷ÏàÓ¦µÄ×Ô¶¯µ÷Õû£¿¡¡¡¡
¡¡¡¡»Ø´ð£ºÀûÓá°Ïà¶ÔÒýÓá±À´ÊµÏÖ£¬¡°Ïà¶ÔÒýÓá±ÊÇExcel¡¡ÖÐĬÈϵÄÒýÓ÷½Ê½¡¡¡¡
Àý£ºÔÚ¹¤×÷±í¡¡Sheet1¡¡ÖУã²µ¥Ôª¸ñΪ£µ£¬£Ä£²µ¥Ôª¸ñΪ£¶£¬ÔÚ¹¤×÷±íSheet2¡¡ÖУã³µ¥Ôª¸ñÖС¡
ÊäÈë¡°£½Sheet1£¡C2£«Sheet1£¡D2¡±£¬Èç¹û°Ñ¡¡¡¡
£Ã£²µ¥Ôª¸ñ¼ôÇе½£Ã£³£¬ÄÇôÔÚ¹¤×÷±íSheet2¡¡ÖУã³µ¥Ôª¸ñÖеĹ«Ê½¾Í×Ô¶¯±äΪ¡°£½¡¡
Sheet1£¡C3£«Sheet1£¡D2¡±¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡367¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡368¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÈçºÎʹ¡¡EXCEL¡¡Ó¦ÓóÌÐòËø¶¨²»ÈÃÈË´ò¿ª¡¡¡¡
ÇëÎÊÎÒÒÔϵIJÙ×÷Ó¦ÔÙÈçºÎÐ޸ijÉÈçÃÜÂëÊäÈë´íÎóÔòÍ˳ö¡¡EXCEL¡£ÕâÊÇÎÒ±àдÔÚ¡¡
PERSONAL¡£XLS¡¡¡¡ÖеÄÒ»¸öÄ£¿é¡£´úÂëÈçÏ£»Çë¸÷¸ßÊÖ°ïæΪСµÜÖ¸µãÒ»¶þ£»²»Éõ¸Ð¼¤£¡¡¡¡¡¡¡¡¡
Sub¡¡auto_Open£¨£©¡¡¡¡¡¡¡¡
MsgBox¡¡¡¨ÈÈÁл¶ÓÀ´º£Ô´£»Äã³Ô±¥ÁËÂ𣿡¨¡¡¡¡¡¡¡¡
If¡¡Application¡£InputBox£¨¡¨ÇëÊäÈë²Ù×÷ȨÏÞÃÜÂ룺123¡¨£©¡¡=¡¡123¡¡Then¡¡¡¡¡¡¡¡
Else¡¡¡¡¡¡¡¡
'¡£¡£¡£¡£¡££¨ÔÚÕâÒ»²½ÖУ»ÎÒÏëÍ˳ö¡¡EXCEL£»µ«ÎÞ·¨ÊµÏÖÇë¸ßÊÖÖ¸µãÒ»¶þ£©¡¡¡¡¡¡¡¡
End¡¡If¡¡¡¡¡¡¡¡
End¡¡Sub¡¡¡¡
¡¡½â´ð£ºPrivate¡¡Sub¡¡Workbook_Open£¨£©¡¡¡¡¡¡¡¡
MsgBox¡¡¡¨ÈÈÁл¶ÓÀ´º£Ô´£»Äã³Ô±¥ÁËÂ𣿡¨¡¡¡¡¡¡¡¡
If¡¡Application¡£InputBox£¨¡¨ÇëÊäÈë²Ù×÷ȨÏÞÃÜÂ룺123¡¨£©¡¡=¡¡123¡¡Then¡¡¡¡¡¡¡¡
Exit¡¡Sub¡¡¡¡¡¡¡¡
Else¡¡¡¡¡¡¡¡
Application¡£Quit¡¡¡¡¡¡¡¡
End¡¡If¡¡¡¡¡¡¡¡
End¡¡Sub¡¡¡¡
³ÌÏãÖæµÄÐ޸ģº¡¡¡¡
Sub¡¡auto_Open£¨£©¡¡¡¡
MsgBox¡¡¡¨³ÌÏãÖ滶ÓÄãµÄµ½À´¡¨£»¡¡vbQuestion£»¡¡¡¨ÁªÏµµç»°£º013838751304¡¨¡¡¡¡
If¡¡Application¡£InputBox£¨¡¨ÇëÊäÈë²Ù×÷ȨÏÞÃÜÂ룺¡¨£»¡¡¡¨ÏµÍ³µÇ½¡¨£©¡¡=¡¡123¡¡Then¡¡¡¡
Else¡¡¡¡
MsgBox¡¡¡¨ÃÜÂë´íÎó£»ÇëÖØÊ䡨£»¡¡vbCritical¡¡£«¡¡vbOKOnly£»¡¡¡¨Ä㻹ÓÐÁ½´Î»ú»á¡¨¡¡¡¡
If¡¡Application¡£InputBox£¨¡¨ÇëÊäÈë²Ù×÷ȨÏÞÃÜÂ룺¡¨£»¡¡¡¨ÏµÍ³µÇ½¡¨£©¡¡=¡¡123¡¡Then¡¡¡¡
Else¡¡¡¡
MsgBox¡¡¡¨ÃÜÂë´íÎó£»ÔÙ¸øÄãÒ»´Î»ú»á£¡¡¨£»¡¡vbCritical¡¡£«¡¡vbOKOnly£»¡¡¡¨Ä㻹ÓÐÒ»´Î»ú»á¡¨¡¡¡¡
If¡¡Application¡£InputBox£¨¡¨ÇëÊäÈë²Ù×÷ȨÏÞÃÜÂ룺¡¨£©¡¡=¡¡123¡¡Then¡¡¡¡
Else¡¡¡¡
MsgBox¡¡¡¨ÄãÎÞȨ½øÈ뱾ϵͳ£¡ÇëÏò³ÌÏãÖæÉêÇëÃÜÂ룡¡¨£»¡¡vbCritical¡¡£«¡¡vbOKOnly£»¡¡¡¨ÄãûÓлú»áÀ²£¡¡¨¡¡¡¡
Application¡£Quit¡¡¡¡
End¡¡If¡¡¡¡
End¡¡If¡¡¡¡
End¡¡If¡¡¡¡
End¡¡Sub¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý×éµÄÔËËã·¨Ôò¡¡¡¡
ÓС¡excel¡¡±íÈçÏ£º¡¡¡¡¡¡¡¡
ÐÕÃû¡¡¡¡³É¼¨¡¡¡¡/Íõ¾ê¡¡¡¡ÓÅ¡¡¡¡/ÓÀÉú¡¡¡¡¡¡ÖС¡¡¡/¡¡ãÉÉú¸Õ¡¡¡¡ÓÅ¡¡¡¡/ÖìÖÇÈñ¡¡¡¡¡¡ÖС¡¡¡/ºúÇ¿Ç¿¡¡¡¡¡¡Á¼¡¡¡¡/½ðÁúÁÛ¡¡¡¡ÓÅ¡¡¡¡/ÕÅÕý÷¡¡¡¡¡¡ÖС¡¡¡/¡¡
ÍôÓûÉú¡¡¡¡¡¡Á¼¡¡¡¡/¡¡ãÉÉú¸Õ¡¡¡¡¡¡ÖС¡¡¡/Íõ¾ê¡¡¡¡ÓÅ¡¡¡¡/ÕÅÕý÷¡¡¡¡ÓÅ¡¡¡¡/¡¡ãÉÉú¸Õ¡¡¡¡¡¡ÖС¡¡¡/ÓÀÉú¡¡¡¡¡¡Á¼¡¡¡¡/Íõ¾ê¡¡¡¡¡¡Á¼¡¡¡¡/ÆäÖÐÐÕÃûÔÚ¡¡
sheet1¡¡Ò³µÄ¡¡a¡¡ÁУ¬³É¼¨ÔÚ¡¡c¡¡ÁС£ÎÒÏëÔÚ¡¡sheet2¡¡Ò³Öн¨Á¢Ò»¸ö±íÈçÏ£º¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡368¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡369¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
ÐÕÃû¡¡¡¡Í³¼ÆÓÅÊý¡¡¡¡/ºúÇ¿Ç¿¡¡¡¡/½ðÁúÁÛ¡¡¡¡/¡¡ãÉÉú¸Õ¡¡¡¡/ÍôÓûÉú¡¡¡¡/Íõ¾ê¡¡¡¡/ÓÀÉú¡¡¡¡/ÕÅÕý÷¡¡¡¡/ÖìÖÇÈñ¡¡¡¡/¡¡Í¬ÑùÐÕÃû¡¡
ÔÚ¡¡sheet1¡¡µÄa¡¡ÁУ¬Í³¼ÆÔÚ¡¡c¡¡ÁУ¬ÕâÀïµÄÐÕÃûÒѾÕûÀíΪûÓÐÖظ´µÄÐÕÃû¡£ÒªÍ³¼Æ³öÿÈË»ñµÃÓÅ¡¡
µÄÊýÄ¿¡£ÇëÎÊÓÃʲôº¯ÊýÄܽâ¾ö¡£ÎÒÓÃÁËif£¨£¨sheet1£¡c2£©=¡¨ÓÅ¡¨£»countif£¨sheet1£¡a£ºa£»a2£©£©£»½á¹ûÊÇͳ¼Æ¡¡
µÄÐÕÃûÊý£¬¶ø²»Êdzɼ¨Êý¡£Èç¹ûÄÜͳ¼Æ³öÀ´£¬ÄÄô¾ÍÊÇÒ»¸ö¶¯Ì¬µÄµ±sheet1¡¡ÖÐÊý¾Ý±ä»¯Ê±£¬sheet2¡¡
ÖÐÊý¾ÝÓ¦µ½¸ú×ű仯¡£¡¡¡¡¡¡¡¡
ÓÐλÅóÓÑÖ¸µ¼²ÉÓÃÏÂÃæµÄʽ×Ó°ÑÉÏÃæµÄÎÊÌâ½â¾öÁË¡£ÕâÀï¼ÙÉè×î´ó¼Ç¼ÊýΪ¡¡100¡¡¡¡¡¡¡¡
=sum£¨£¨sheet1£¡a2£ºa101=a2£©*£¨sheet1£¡c2£ºc101=¡¨ÓÅ¡¨£©*1£©¡¡¡¡£¬°´¡¡Ctrl£«Shift£«Enter¡¡¡¡£¬µ«ÊÇÕâ¡¡
ÊÇÓõ½ÁËÊý×éÔËË㣬ÇëÎÊÊý×éÔËËãµÄ¹æÔòÊÇʲô£¬¿´µ½Ðí¶àµØ·½¶¼¿ÉÒÔÓÃÊý×é½â¾ö£¬µ«²»ÖªÆä¡¡
ËùÒÔÈ»¡£°ïÖúÎļþÖÐҲû˵ÔËËã¹æÔò¡£ÈçÉÏʽÖÐΪʲôÓÃ*ºÅ£¿Ð»Ð»¡¡¡¡
½â´ð£º¶ÔÓÚÊý×鹫ʽµÄº¬Òå¡¡¡¡¡¡¡¡
sum£¨£¨sheet1£¡a2£ºa101=a2£©*£¨sheet1£¡c2£ºc101=¡¨ÓÅ¡¨£©*1£©¡¡¡¡¡¡¡¡
ÎÒÃÇÀ´Ò»²¿·Ö£¬Ò»²¿·ÖµÄ½²£º¡¡¡¡¡¡¡¡
1¡¢£¨sheet1£¡a2£ºa101=a2£©¡¡¡¡¡¡¡¡
±íʾÓá¡¡¡sheet1£¡a2£ºa101¡¡¡¡ÇøÓòÖеÄÿһ¸öµ¥Ôª¸ñÖеÄÄÚÈÝÓë¡¡¡¡a2¡¡¡¡µ¥Ôª¸ñµÄÄÚÈݽøÐбȽϣ¬¡¡
Èç¹ûÏàͬ½á¹ûΪ¡°True¡¡¡±£¬·ñÔòΪ¡°False¡¡¡±¡£¡¡¡¡¡¡¡¡
2¡¡¡¢£¨sheet1£¡c2£ºc101=¡¨ÓÅ¡¨£©¡¡¡¡¡¡¡¡
±íʾÓá¡¡¡sheet1£¡c2£ºc101¡¡¡¡ÇøÓòÖеÄÿһ¸öµ¥Ôª¸ñÖеÄÄÚÈÝÓë¡¡¡¡×Ö·û´®¡¨ÓÅ¡¨½øÐб