°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·ҳ£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
Any£»¡¡_¡¡ByVal¡¡lpWindowName¡¡As¡¡Any£©¡¡As¡¡Long¡¡Private¡¡Declare¡¡Function¡¡SendMessage¡¡Lib¡¡¡¡
¡¨user32¡¨¡¡_¡¡Alias¡¡¡¨SendMessageA¡¨¡¡£¨ByVal¡¡hwnd¡¡As¡¡Long£»¡¡_¡¡ByVal¡¡wMsg¡¡As¡¡Long£»¡¡ByVal¡¡wParam¡¡¡¡
As¡¡Long£»¡¡_¡¡lParam¡¡As¡¡Any£©¡¡As¡¡Long¡¡Private¡¡Sub¡¡SomeProc£¨£©¡¡Dim¡¡wnd¡¡As¡¡Long¡¡Dim¡¡uClickYes¡¡¡¡
As¡¡¡¡Long¡¡¡¡Dim¡¡¡¡Res¡¡¡¡As¡¡¡¡Long¡¡¡¡'¡¡¡¡Register¡¡¡¡a¡¡¡¡message¡¡¡¡to¡¡¡¡send¡¡¡¡uClickYes¡¡¡¡=¡¡¡¡
RegisterWindowMessage£¨¡¨CLICKYES_SUSPEND_RESUME¡¨£©¡¡'¡¡Find¡¡ClickYes¡¡Window¡¡by¡¡classname¡¡¡¡
wnd¡¡=¡¡FindWindow£¨¡¨EXCLICKYES_WND¡¨£»¡¡0&£©¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CXXXVII¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡138¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Excel_word_ppt_ʹÓü¼ÇÉ´óÈ«£¨ÍêÈ«°æ£©¡¡¡¡
'¡¡Send¡¡the¡¡message¡¡to¡¡Resume¡¡ClickYes¡¡Res¡¡=¡¡SendMessage£¨wnd£»¡¡uClickYes£»¡¡1£»¡¡0£©¡¡'¡¡¡£¡£¡£¡¡¡¡
'¡¡Do¡¡some¡¡Actions¡¡'''''¡¡btn_sendmail_Click¡¡¸ÉЩʺóÔٹصô¡¡'¡¡Send¡¡the¡¡message¡¡to¡¡¡¡
Suspend¡¡ClickYes¡¡Res¡¡=¡¡SendMessage£¨wnd£»¡¡uClickYes£»¡¡0£»¡¡0£©¡¡End¡¡Sub¡¡³Ì¿ØClickYes¡¡¡¡¡¡
===¡¡¡¡¡¡
ÄãºÃ£º¡¡ÎÒÏëÁËÒ»‚€·½·¨£¬Óá¡display¡¡·½·¨£¬ÔÙ°´¡¡Ait¡¡£«¡¡S¡¡æI‚÷ËÍ¡¡Email¡¡ÒÔÏ·¨ÔÚ¡¡Excel¡¡2003¡¡¡¡
£«¡¡Outlook¡¡2003¡¡œyÔ‡³É¹¦¡¡PS£º¡¡ÕˆÔÚExcel¡¡Ò•´°ÏˆÌÐУ¬ÈôÔÚ¡¡VBE¡¡Ò•´°ˆÌÐЕþÓІ–î£ý¡¡Public¡¡¡¡
Declare¡¡Function¡¡SetTimer¡¡Lib¡¡¡¨user32¡¨¡¡_¡¡£¨ByVal¡¡hwnd¡¡As¡¡Long£»¡¡ByVal¡¡nIDEvent¡¡As¡¡Long£»¡¡¡¡
ByVal¡¡uElapse¡¡As¡¡Long£»¡¡ByVal¡¡lpTimerfunc¡¡As¡¡Long£©¡¡As¡¡Long¡¡Public¡¡Declare¡¡Function¡¡¡¡
KillTimer¡¡Lib¡¡¡¨user32¡¨¡¡_¡¡£¨ByVal¡¡hwnd¡¡As¡¡Long£»¡¡ByVal¡¡nIDEvent¡¡As¡¡Long£©¡¡As¡¡Long¡¡Private¡¡¡¡
Declare¡¡Sub¡¡Sleep¡¡Lib¡¡¡¨kernel32¡¨¡¡£¨ByVal¡¡dwMilliseconds¡¡As¡¡Long£©¡¡Private¡¡Declare¡¡¡¡
Function¡¡SetForegroundWindow¡¡Lib¡¡¡¨user32¡¨¡¡£¨ByVal¡¡hwnd¡¡As¡¡Long£©¡¡As¡¡Long¡¡Function¡¡¡¡
WinProcA£¨ByVal¡¡hwnd¡¡As¡¡Long£»¡¡ByVal¡¡uMsg¡¡As¡¡Long£»¡¡ByVal¡¡idEvent¡¡As¡¡Long£»¡¡ByVal¡¡SysTime¡¡¡¡
As¡¡Long£©¡¡As¡¡Long¡¡KillTimer¡¡0£»¡¡idEvent¡¡DoEvents¡¡Sleep¡¡500¡¡Application¡£SendKeys¡¡¡¨£¥s¡¨¡¡¡¡
End¡¡Function¡¡Sub¡¡test£¨£©¡¡Application¡£ScreenUpdating¡¡=¡¡False¡¡Dim¡¡objOL¡¡As¡¡Object¡¡Dim¡¡¡¡
itmNewMail¡¡As¡¡Object¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CXXXVIII¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡139¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Excel_word_ppt_ʹÓü¼ÇÉ´óÈ«£¨ÍêÈ«°æ£©¡¡¡¡
¡¨¡¡¡£display¡¡SetTimer¡¡0£»¡¡0£»¡¡0£»¡¡AddressOf¡¡WinProcA¡¡End¡¡With¡¡Set¡¡objOL¡¡=¡¡Nothing¡¡Set¡¡¡¡
itmNewMail¡¡¡¡=¡¡¡¡Nothing¡¡¡¡Application¡£ScreenUpdating¡¡¡¡=¡¡¡¡True¡¡¡¡End¡¡¡¡Sub¡¡¡¡Set¡¡¡¡objOL¡¡¡¡=¡¡¡¡
CreateObject£¨¡¨Outlook¡£Application¡¨£©¡¡Set¡¡itmNewMail¡¡=¡¡objOL¡£CreateItem£¨olMailItem£©¡¡¡¡
With¡¡itmNewMail¡¡¡£Subject¡¡=¡¡¡¨chijanzen¡¡Mail¡¡Test¡¨¡¡¡£To¡¡=¡¡¡¨chijanzen@gmail¡£¡¡¡¡
£§·ÖÏí£§Ö»¼ÇµÃº¯ÊýµÄÃû³Æ£¬µ«¼Ç²»Ç庯ÊýµÄ²ÎÊýÁË£¬Ôõô°ì£¿¡¡Èç¹ûÄãÖªµÀËùҪʹÓú¯ÊýµÄÃû¡¡
×Ö£¬µ«ÓּDz»ÇåËüµÄËùÓвÎÊý¸ñʽ£¬ÄÇô¿ÉÒÔÓüüÅÌ¿ì½Ý¼ü°Ñ²ÎÊýÕ³Ìùµ½±à¼À¸ÄÚ¡£¡¡¾ßÌå·½¡¡
·¨ÊÇ£ºÔÚ±à¼À¸ÖÐÊäÈëÒ»¸öµÈºÅÆäºó½Óº¯ÊýÃû£¬È»ºó°´¡¡Ctr£«¡¡A¼ü£¬ExcelÔò×Ô¶¯½øÈë¨Dº¯ÊýÖ¸¡¡
ÄÏ¡ª¡ª²½Öè¡¡2Ö®2¡¬¡¡¡£µ±Ê¹ÓÃÒ×ÓÚ¼ÇÒäµÄÃû×ÖÇÒ¾ßÓкܳ¤Ò»´®²ÎÊýµÄº¯Êýʱ£¬ÉÏÊö·½·¨ÏÔµÃÌرð¡¡
ÓÐÓᣡ¡¡¡¡¡
£§·ÖÏí£§Ö»¼ÆËãExcel¹«Ê½µÄÒ»²¿·Ö¡¡ÔÚExcelÖе±ÎÒÃǵ÷ÊÔÒ»¸ö¸´ÔӵĹ«Ê½Ê±¿ÉÄÜÐèÒªÖªµÀ¹«Ê½¡¡
ijһ²¿·ÖµÄÖµ£¬¿ÉÒÔÓÃÒÔϵİ취À´»ñµÃ£ºË«»÷º¬Óй«Ê½µÄµ¥Ôª¸ñ£¬Ñ¡¶¨¹«Ê½ÖÐÐèÒª»ñµÃÖµµÄ¡¡
ÄDz¿·Ö¹«Ê½£¬°´¨DF9¡¬¼ü£¬Excel¾Í»á½«±»Ñ¡¶¨µÄ²¿·ÖÌæ»»³É¼ÆËãµÄ½á¹û£¬°´¨DCtrl£«Z¡¬¿ÉÒÔ»Ö¸´¡¡
¸Õ²ÅµÄÌæ»»¡£Èç¹ûÑ¡¶¨µÄÊÇÕû¸ö¹«Ê½µÄ»°£¬¾Í¿ÉÒÔ¿´µ½×îºóµÄ½á¹û¡£¡¡ÀýÈ磬ÓÐÕâÑùÒ»Ìõ¹«Ê½£º¡¡
£¨A1*B1£«C1£©/D1£¬Ñ¡¶¨¹«Ê½ÖеÄA1*B1¡¡£¨¼ÙÉèA1ºÍB1µÄÖµ·Ö±ðΪ12ºÍ8£©£¬°´¨DF9¡¬¼ü£¬Excel¾Í»á¡¡
½«A1*B1Õⲿ·Öת»»Îª96¡£Õâʱ£¬¹«Ê½¾Í±ä³ÉÁË£¨96£«C1£©/D1¡£Èç¹û¼ÌÐøÑ¡¶¨D1£¨¼ÙÉèD1µÄֵΪ6£©£¬¡¡
²¢°´¨DF9¡¬¼ü£¬Excel»á½«¹«Ê½×ª»»Îª¡¡£¨A1*B1£«C1£©/6¡£¡¡µ±ÄãÍê³ÉÁ˹«Ê½µÄ¼ÆË㲿·Ö£¬Ïë»Ö¸´³ÉÔ¡¡
À´µÄ¹«Ê½£¬¡¡°´¨DEsc¡¬¼´¿É¡£¡¡ÔÚExcelÖе±ÎÒÃǵ÷ÊÔÒ»¸ö¸´ÔӵĹ«Ê½Ê±¿ÉÄÜÐèÒªÖªµÀ¹«Ê½Ä³Ò»²¿¡¡
·ÖµÄÖµ£¬¿ÉÒÔÓÃÒÔϵİ취À´»ñµÃ£ºË«»÷º¬Óй«Ê½µÄµ¥Ôª¸ñ£¬Ñ¡¶¨¹«Ê½ÖÐÐèÒª»ñµÃÖµµÄÄDz¿·Ö¡¡
¹«Ê½£¬°´¨DF9¡¬¼ü£¬Excel¾Í»á½«±»Ñ¡¶¨µÄ²¿·ÖÌæ»»³É¼ÆËãµÄ½á¹û£¬°´¨DCtrl£«Z¡¬¿ÉÒÔ»Ö¸´¸Õ²ÅµÄ¡¡
Ìæ»»¡£Èç¹ûÑ¡¶¨µÄÊÇÕû¸ö¹«Ê½µÄ»°£¬¾Í¿ÉÒÔ¿´µ½×îºóµÄ½á¹û¡£¡¡¡¡¡¡
£§·ÖÏí£§ÈçºÎ²»Ê¹ÏÔʾ»ò´òÓ¡³öÀ´µÄ±í¸ñÖаüº¬ÓÐ0Öµ£¿¡¡Í¨³£Çé¿öÏ£¬ÎÒÃDz»Ï£ÍûÏÔʾ»ò´òÓ¡³ö¡¡
À´µÄ±í¸ñÖаüº¬ÓÐ0Öµ£¬¶øÊǽ«ÆäÄÚÈÝÖÃΪ¿Õ¡£ÀýÈ磬ͼ1ºÏ¼ÆÁÐÖÐÈç¹ûʹÓèD=b2£«c2£«d2¡¬¹«Ê½£¬¡¡
½«ÓпÉÄܳöÏÖ0ÖµµÄÇé¿ö£¬ÈçºÎÈÃ0Öµ²»ÏÔʾ£¿¡¡·½·¨Ò»£»Ê¹ÓüÓÉÏIfº¯ÊýÅжÏÖµÊÇ·ñΪ0µÄ¹«Ê½£¬¡¡
¼´£º¡¡=if¡¡£¨b2£«c2£«d2£½0£¬¨D¡¬£¬¡¡b2£«c2£«d2£©¡¡·½·¨¶þ£ºÑ¡Ôñ¨D¹¤¾ß¡¬¡¡£Ü¨DÑ¡Ï¡¡£Ü¨DÊÓ´°¡¬£¬ÔÚ¨D´°¡¡
¿ÚÑ¡Ï¡¡ÖÐÈ¥µô¨DÁãÖµ¡¬Ñ¡Ïî¡£¡¡·½·¨Èý£ºÊ¹ÓÃ×Ô¶¨Òå¸ñʽ¡£¡¡Ñ¡ÖС¡E2£ºE5ÇøÓò£¬Ñ¡Ôñ¨D¸ñʽ¡¬¡¡£Ü¨Dµ¥¡¡
Ôª¸ñ¡¬¡¡£Ü¨DÊý×Ö¡¬£¬´Ó¨D·ÖÀ࡬ÁÐ±í¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CXXXIX¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡140¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Excel_word_ppt_ʹÓü¼ÇÉ´óÈ«£¨ÍêÈ«°æ£©¡¡¡¡
¿òÖÐÑ¡Ôñ¨D¡¡×Ô¶¨Ò塬£¬ÔÚ¨D¸ñʽ¡¬¿òÖÐÊäÈë¨DG/ͨÓøñʽ£»¡G/ͨÓøñʽ£»£»¡¬£¬°´¨DÈ·¶¨¡¬°´Å¥¼´¿É¡£¡¡¡¡
·½·¨ËÄ£º½«0Ìæ»»³É¿Õ¡¡¡¡£¨Ñ¡Ôñµ¥Ôª¸ñÆ¥Å䣩¡¡·½·¨Îå¡¡£¨¸ù¾Ý5Â¥Óêµã£©£º¶¨ÒåÄ¿±êEXCEL±í£¬ÔÚ¨DÌõ¼þ¡¡
¸ñʽ¡¬¡¡Öн«¨Dµ¥Ôª¸ñÊýÖµ¡¬µÈÓÚ¨D0¡¬£¬ÔÚ¨D¸ñʽ¡¬¡¡Öн«¨DÑÕÉ«¡¬ÉèΪ¨D¡¡°×É«¡¬£¬Á½´Î¨DÈ·¶¨¡¬¼´¿É¡£¶¨Òå±í¡¡
ÖеÄ0Öµ¾ùΪ°×É«£¬´òӡʱҲ²»ÏÔʾ¡¡¡¡¡¡
»¹ÓÐÒ»·½·¨£º¡¡¶¨ÒåÄ¿±êEXCEL±í£¬ÔÚ¨DÌõ¼þ¸ñʽ¡¬¡¡Öн«¨Dµ¥Ôª¸ñÊýÖµ¡¬µÈÓÚ¨D0¡¬£¬ÔÚ¨D¸ñʽ¡¬¡¡Öн«¨DÑÕ¡¡
É«¡¬ÉèΪ¨D¡¡°×É«¡¬£¬Á½´Î¨DÈ·¶¨¡¬¼´¿É¡£¶¨Òå±íÖеÄ0Öµ¾ùΪ°×É«£¬´òӡʱҲ²»ÏÔʾ¡¡¡¡¡¡
£§·ÖÏí£§ExcelÖШDÉãÓ°¡¬¡¡µÄÃîÓá¡ÔÚExcelÖУ¬Èç¹ûÐèÒªÔÚÒ»¸öÒ³ÃæÖз´Ó³ÁíÍâÒ»¸öÒ³ÃæµÄ¸ü¸Ä£¬¡¡
ÎÒÃÇÒ»°ãÓÃÕ³ÌùÁ¬½ÓµÈ·½Ê½À´ÊµÏÖ¡£µ«ÊÇ£¬Èç¹ûÐèÒª·´Ó³µÄÄÚÈݱȽ϶࣬ÌرðÊÇÄ¿±êλÖõĸñ¡¡
ʽ±àÅÅÒ²±ØÐë·´Ó³³öÀ´µÄʱºò£¬ÔÙʹÓÃÁ¬½ÓÊý¾ÝµÄ·½Ê½¾ÍÐв»Í¨ÁË¡£ºÃÔÚÌìÎÞ¾øÈË֮·£¬Excel¡¡
ÔçΪÎÒÃÇ×¼±¸Á˨DÕÕÏà»ú¡¬£¬ÄãÖ»Òª°ÑÏ£Íû·´Ó³³öÀ´µÄÄDz¿·ÖÄÚÈݨDÕÕ¡¬ÏÂÀ´£¬È»ºó°Ñ¨DÕÕƬ¡¬Õ³Ìù¡¡
µ½ÆäËûµÄÒ³Ãæ¼´¿É¡£¡¡1¡¢×¼±¸¨DÕÕÏà»ú¡¬¡¡1£©¡¡´ò¿ªExcelµÄ¨D¹¤¾ß¡¬²Ëµ¥£¬Ñ¡Ôñ¨D¡¡×Ô¶¨Ò塬¶Ô»°¿ò¡£¡¡¡¡
2£©¡¡µ¥»÷¨DÃüÁѡÏ£¬ÔÚ¨DÀà±ð¡¬¡¡ÖÐÑ¡Ôñ¨D¹¤¾ß¡¬£¬ÔÚÓұߨDÃüÁÁбíÖÐÕÒµ½¨DÉãÓ°¡¬£¬²¢ÇÒ½«Æä¡¡
Íϵ½¹¤¾ßÀ¸µÄÈÎÒâλÖᣡ¡2¡¢¸øÄ¿±ê¨DÅÄÕÕ¡¬¡¡¼ÙÉèÎÒÃÇÒªÈÃSheet2ÖеIJ¿·ÖÄÚÈÝ×Ô¶¯³öÏÖÔÚ¡¡
Sheet1ÖС£¡¡1£©¡¡Í϶¯Êó±ê²¢ÇÒÑ¡ÔñSheet2ÖÐÐèÒª¨DÅÄÕÕ¡¬¡¡µÄÄÚÈÝ¡£¡¡2£©¡¡ÓÃÊó±êµ¥»÷¹¤¾ßÀ¸ÉÏ×¼¡¡
±¸ºÃµÄ¨DÕÕÏà»ú¡¬°´Å¥£¬ÓÚÊÇÕâ¸öÑ¡¶¨µÄÇøÓò¾Í±»¨DÅÄ¡¬¡¡ÁËÏÂÀ´¡£¡¡3¡¢Õ³Ìù¨DÕÕƬ¡¬¡¡1£©¡¡´ò¿ªSheet1¡¡
¹¤×÷±í¡£¡¡2£©¡¡ÔÚÐèÒªÏÔʾ¨DÕÕƬ¡¬¡¡µÄλÖÃÉϵ¥»÷Êó±ê×ó¼ü£¬±»¨DÅÄÉ㡬¡¡µÄ¨DÕÕƬ¡¬¾ÍÁ¢¼´Õ³Ìù¹ýÀ´¡¡
ÁË¡£¡¡ÔÚSheet2Öе÷Õû¨DÕÕƬ¡¬¡¡µÄ¸÷ÖÖ¸ñʽ£¬Õ³Ìùµ½Sheet1ÖеÄÄÚÈÝͬ²½·¢Éú±ä»¯£¬¶øÇÒÒòΪ²å¡¡
ÈëµÄµÄÈ·ÊÇÒ»·ù×Ô¶¯¸üеÄͼÏñÎļþ£¬ËùÒÔ£¬¨D¡¡Í¼Æ¬¡¬¹¤¾ßÀ¸¶ÔÕâ¸öÕÕƬҲÊÇÓÐЧµÄŶ£¡Äã¿ÉÒÔ¡¡
°´¼¸¸ö°´Å¥ÊÔÊÔ£¬Õâ¸ö¨DÕÕƬ»¹¿ÉÒÔ×ÔÓɵÄÐýתÄØ£¡ÔõôÑù£¿Õâ¸öÊýÂëÕÕÏà»ú»¹²»´í°É£¡¡¡¡¡¡¡
£§·ÖÏí£§Excel¡¡XPµÄ¿ìËÙÊäÈë¼¼ÇÉ¡¡ÓÃExcel¡¡XP´¦ÀíÅÓ´óµÄÊý¾ÝÐÅϢʱ£¬Èç¹û²»×¢Òâ½²¾¿¼¼Çɺ͡¡
·½·¨£¬ºÜ¿ÉÄܻỨ·ÑºÜ´óµÄ¾«Á¦¡£Òò´ËÈçºÎÇÉÓÃExcel¡¡XP£¬À´¿ìËÙÊäÈëÐÅÏ¢¾Í³ÉΪ¸