°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·ҳ£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
filename¡¡=¡¡VBAProject¡£ThisWorkbook¡£Name¡¡Then¡¡'²»ÒªÔÚ×ÔÉíÕâ¸öÎļþÖвÙ×÷¡¡MsgBox¡¡¡¨Çë¡¡
Ñ¡¡¡Ôñ¡¡Æä¡¡Ëü¡¡ÎÄ¡¡¼þ¡¡ÖС¡µÄ¡¡Êý¡¡¾Ý¡¡£¡¡¡¡¨£»¡¡¡¡vbInformation¡¡¡¡£«¡¡¡¡vbOKOnly¡¡¡¡Exit¡¡¡¡Sub¡¡¡¡End¡¡¡¡If¡¡¡¡
Application¡£ScreenUpdating¡¡=¡¡False¡¡'½«ÆÁÄ»¸üйرգ»¿É¼Ó¿ìºêµÄÔËÐÐËٶȡ¡billno¡¡=¡¡0¡¡'¡¡
¼ÆÊýÇå0¡¡moneytype£¨0£©¡¡=¡¡100¡¡'Ó¡»¨Ë°Ãæ¶îΪ0¡£5¡100£»ÒÔ0¡£5ΪÉáÈë±ê×¼¡¡moneytype£¨1£©¡¡=¡¡50¡¡¡¡
moneytype£¨2£©¡¡=¡¡10¡¡moneytype£¨3£©¡¡=¡¡5¡¡moneytype£¨4£©¡¡=¡¡2¡¡moneytype£¨5£©¡¡=¡¡1¡¡moneytype£¨6£©¡¡=¡¡¡¡
0¡£5¡¡VBAProject¡£ThisWorkbook¡£Sheets£¨1£©¡£Activate¡¡'´ò¿ª½á¹ûÒ³¡¡If¡¡flagcal¡¡=¡¡0¡¡Then¡¡'¡¡
Èç¡¡¹û¡¡Îª¡¡µÚ¡¡Ò»¡¡´Î¡¡¼Æ¡¡Ëã¡¡£»¡¡Ôò¡¡Çå¡¡¿Õ¡¡½á¡¡¹û¡¡Ò³¡¡¡¡¡¡Cells¡£Select¡¡¡¡Selection¡£ClearContents¡¡¡¡
Range£¨¡¨A1¡¨£©¡£Select¡¡End¡¡If¡¡ActiveSheet¡£Cells£¨1£»¡¡1£©¡¡=¡¡¡¨Origin¡¡DATA¡¨¡¡'ÏÈдÉϱíÍ·¡¡For¡¡i¡¡¡¡
=¡¡0¡¡To¡¡6¡¡ActiveSheet¡£Cells£¨1£»¡¡i¡¡£«¡¡2£©¡¡=¡¡moneytype£¨i£©¡¡Next¡¡i¡¡Workbooks£¨filename£©¡£Activate¡¡¡¡
'תµ½Òª¼ÆËãµÄÔʼÊý¾ÝÊý¾ÝÎļþ¡¡rowno¡¡=¡¡ActiveWindow¡£RangeSelection¡£Rows¡£Count¡¡'ËùÑ¡¡¡
Çø¡¡Óò¡¡ÓС¡¼¸¡¡ÐС¡¡¡¡¡rowstart¡¡¡¡=¡¡¡¡ActiveWindow¡£RangeSelection¡£Row¡¡¡¡'¡¡Æð¡¡Ê¼¡¡ÐС¡¡¡¡¡colstart¡¡¡¡=¡¡¡¡
ActiveWindow¡£RangeSelection¡£Column¡¡'ÆðʼÁС¡j¡¡=¡¡rowbegain¡¡'½á¹ûÒ³ÖÐд½á¹ûµÄÆðʼÐС¡¡¡
For¡¡i¡¡=¡¡1¡¡To¡¡rowno¡¡'¿ªÊ¼¶ÁÔʼÊý¾Ý¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡XLVIII¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡49¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Excel_word_ppt_ʹÓü¼ÇÉ´óÈ«£¨ÍêÈ«°æ£©¡¡¡¡
origindata¡¡=¡¡Cells£¨i¡¡£«¡¡rowstart¡¡1£»¡¡colstart£©¡¡'¶ÁÔʼÊý¾Ý¡¡'¹ãÖÝÓ¡»¨Ë°Î²Êý´¦Àí·½·¨£º¡¡
¹ý0¡£5½ø1£»²»×ãÉáÈ¥£»¸ÕºÃΪ0¡£5¼°Æ䱶ÊýÔò²»±ä¡¡If¡¡origindata¡¡*¡¡100¡¡Mod¡¡50¡¡¡¡0¡¡Then¡¡money¡¡¡¡
=¡¡Round£¨origindata£»¡¡0£©¡¡'ÒÔ0¡£5Ϊ½çÏÞ×÷ËÄÉáÎåÈë¡¡Else¡¡money¡¡=¡¡origindata¡¡'ÕûÊý¼°Î²Êý¡¡
¸ÕºÃΪ0¡£5²»×÷´¦Àí¡¡End¡¡If¡¡VBAProject¡£ThisWorkbook¡£Sheets£¨1£©¡£Activate¡¡'תµ½½á¹ûÒ³¡¡¡¡
ActiveSheet¡£Cells£¨i¡¡¡¡£«¡¡¡¡1¡¡¡¡£«¡¡¡¡j£»¡¡¡¡1£©¡¡¡¡=¡¡¡¡origindata¡¡¡¡'¡¡ÔÚ¡¡µÚ¡¡Ò»¡¡ÁС¡Ð´¡¡Èë¡¡Ô¡¡Ê¼¡¡Êý¡¡¾Ý¡¡¡¡
Workbooks£¨filename£©¡£Activate¡¡''תµ½Òª¼ÆËãµÄÔʼÊý¾ÝÊý¾ÝÎļþ¡¡For¡¡k¡¡=¡¡0¡¡To¡¡6¡¡'Ñ»·¼Æ¡¡
Ëã¸÷Ãæ¶îËùÐèÕÅÊý¡¡While¡¡money¡¡¡·=¡¡moneytype£¨k£©¡¡money¡¡=¡¡money¡¡moneytype£¨k£©¡¡billno¡¡=¡¡¡¡
billno¡¡£«¡¡1¡¡Wend¡¡VBAProject¡£ThisWorkbook¡£Sheets£¨1£©¡£Activate¡¡ActiveSheet¡£Cells£¨i¡¡£«¡¡1¡¡¡¡
£«¡¡j£»¡¡k¡¡£«¡¡2£©¡¡=¡¡billno¡¡'ÔÚÏàӦλÖÃдÈë¸ÃÃæ¶îÕÅÊý¡¡billno¡¡=¡¡0¡¡'Çå0×¼±¸¼ÆËãÏÂÒ»Ãæ¶î¡¡¡¡
Workbooks£¨filename£©¡£Activate¡¡Next¡¡k¡¡rowbegain¡¡=¡¡rowbegain¡¡£«¡¡1¡¡'½á¹ûÒ³ÖÐд½á¹ûµÄÆð¡¡
ʼÐÐÏÂÒÆÒ»ÐС¡Next¡¡i¡¡flagcal¡¡=¡¡flagcal¡¡£«¡¡1¡¡'¼ÆËã´ÎÊýÀÛ¼Ó¡¡rowbegain¡¡=¡¡rowbegain¡¡£«¡¡1¡¡'¡¡
Ìí¼ÓÒ»¿ÕÐÐÇø·Ö²»Í¬´ÎÊýµÄ½á¹û¡¡Application¡£ScreenUpdating¡¡=¡¡True¡¡'»Ö¸´ÆÁĻˢС¡¡¡
VBAProject¡£ThisWorkbook¡£Sheets£¨1£©¡£Activate¡¡'´ò¿ª½á¹ûÒ³¡¡End¡¡Sub¡¡±àºÃºó´æÅÌ£¬Í˳öºê¡¡
±à¼Æ÷¡£¿ªÊ¼¹¹½¨Ò»¸ö¹¤¾ßÀ¸£º£§¹¤¾ß£§¡ª¡¡£§×Ô¶¨Ò壧£¬µã»÷£§¹¤¾ßÀ¸£§¡¡¡£§Ð½¨£§£¬¹¤¾ßÀ¸Ãû³Æ¶¨¡¡
Ϊ¨DÓ¡»¨Ë°¡¬£¬Õâʱ»á³öÏÖ¡¡£¬µã»÷£§ÃüÁ£¬½«¡¡¨DÃüÁÁбíÖÐÈÎÒâͼ±êÍ϶¯µ½Õâ¸ö¹¤¾ßÀ¸ÖУ¬ÔÚ¡¡
¸ÕÍϹýÀ´µÄͼ±êÉϵãÓÒ¼ü£¬Ñ¡Ôñ£§ÃüÃû£§£¬½«Æä¸ÄΪ¨DÓ¡»¨Ë°Ãæ¶î¼ÆË㡬£¬Ñ¡Ôñ£§×ÜÊÇÖ»ÓÃÎÄ×Ö£§£¬¡¡
Õ⡡ʱ¡¡»á¡¡³ö¡¡ÏÖ¡¡¡¡¡¡£¬¡¡ÔÚ¡¡¨D¡¡Ó¡¡¡»¨¡¡Ë°¡¡Ãæ¡¡¶î¡¡¼Æ¡¡Ëã¡¡¡¬¡¡ÉÏ¡¡µã¡¡Ò»¡¡´Î¡¡ÓÒ¡¡¼ü¡¡£¬¡¡Ñ¡¡¡Ôñ¡¡£§Ö¸¡¡¶¨¡¡ºê¡¡£§¡¡£¬¡¡Ñ¡¡¡Ôñ¡¡
¨DThisWorkbook¡£stamp_duty¡¬¡¡£¬µã£§È·¶¨£§¼´¿É¡£ÒÔºóÒª¼ÆËãʱ£¬Ö»ÒªÑ¡ºÃÔʼÊý¾Ý£¬µã»÷¸Ã¹¤¡¡
¾ßÀ¸¼´¿É¡£¡¡73¡¢Sub¡¡AA£¨£©¡¡Sheet1¡£Visible¡¡=¡¡2¡¡Éî¶ÈÒþ²Ø¡¡Sheet1¡£Visible¡¡=¡¡¡1¡¡¡®ÏÔʾ¡¡End¡¡¡¡
Sub¡¡74¡¢ÄãÔÚ¨Dworkbook¡¨µÄ¡¡Private¡¡Sub¡¡Workbook_BeforeClose£¨Cancel¡¡As¡¡Boolean£©¡¡Öмӡ¡
ÈëÈçϾä×Ó£ºmyNowTime¡¡=¡¡Format£¨Now£»¡¡¡¨yymmdd¡¨¡¡&¡¡¡¨¡¡¨¡¡&¡¡¡¨hhmmss¡¨£©¡¡ActiveWorkbook¡£SaveAs¡¡¡¡
Filename£º=currPath¡¡&¡¡myNowTime¡¡&¡¡¡¨¡£xls¡¨£»¡¡AddToMru£º=False¡¡¡¡¡¡£¨¡¬currPath¨D¡¡ÎªÄãµÄ·¾¶¡¡
¼°ÎļþÃû³Æ£©¡¡ÕâÑùÄã±£´æÎļþ¿ÉÒÔÄê¡¢Ô¡¢ÈÕÀ´ÊµÏÖ¡£ÉõÖÁ¿ÉÒÔСʱ¡¢·Ö¡¢ÃëÀ´±£´æ¡£¶ÔÓÚ¡¡
ÔÚ±à³ÌÐòµÄÀ´½²±È½ÏÓÐÓá£Èç¹ûÄã²»ÐèÒª¨DСʱ¡¢·Ö¼°Ã롬£¬¿É°ÑºóÃæµÄ¡¡¡¡£§&¡¡¡¨¡¡¨¡¡&¡¡¡¨hhmmss¡¨£©£§¡¡
È¡Ïû¼´¿É¡£¡¡75¡¢ÎÒÃÇÈÕ³£ÉÏËÍ¡¢Ï·¢µÄ±¨±í²ÄÁÏ¡¢Í¨ÖªµÈ¶¼Òª¼Ó¸Ç¹«Õ£¬Èç¹û°ÑÕâÏ×÷½»¡¡
¸øExcel»òWordÀ´Íê³É£¬ÎÒÃǵŤ×÷¾ÍÇáËɶàÁË¡£¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡XLIX¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡50¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Excel_word_ppt_ʹÓü¼ÇÉ´óÈ«£¨ÍêÈ«°æ£©¡¡¡¡
µÚÒ»²½£ºÖÆ×÷¹«ÕÂͼ°¸¡¡Ê×ÏÈÎÒÃÇÒª×ö³öÒ»¸ö¹«ÕµÄͼ°¸£¬×î¼òµ¥µÄ°ì·¨Êǰѹ«ÕÂͼ°¸É¨Ãèµ½¡¡
µçÄÔÖУ¬È»ºó´¦Àí³É͸Ã÷µÄGIFͼÏñ¡£ÎÒÃÇÒ²¿ÉÒÔÖ±½ÓÓÃExcelÀ´ÖÆ×÷£º°Ñ»æͼ¹¤¾ß´ò¿ª£¬Ñ¡ÖС¡
¨DÍÖÔ²¡¬¹¤¾ß£¬ÔÚ°´Ï¨DShift¡¬¼üµÄͬʱÍÏ¿ªÊó±ê£¬¾Í¿ÉÒԵõ½Ò»¸öÕýÔ²ÁË¡£Ë«»÷Õâ¸öÕýÔ²´ò¿ª¨DÉè¡¡
ÖÃ×ÔѡͼÐθñʽ¡¬¶Ô»°¿ò£¬ÔÚ¨DÑÕÉ«ÓëÏßÌõ¡¬±êÇ©ÖУ¬Ìî³äÑÕÉ«Ñ¡¨DÎÞÌî³äÑÕÉ«¡¬£¬ÏßÌõÑÕÉ«ÉèΪ¡¡
ºìÉ«£¬Ñ¡3°õ´ÖµÄµ¥ÏßÐΣ¨Í¼£©¡£¹«ÕµÄÎÄ×ÖÓÃÒÕÊõ×ÖÀ´ÖÆ×÷£¬Ìî³äÑÕÉ«ºÍÏßÌõÑÕÉ«¶¼ÓúìÉ«£¬¡¡
²¢Éè³ÉÎÞÒõÓ°²ú¡£»¡ÐÎÎÄ×ÖºÍˮƽÎÄ×ÖÒª·Ö¿ªÀ´×ö£¬ÔÚ×ö»¡ÐÎÎÄ×Öʱ£¬°ÑÒÕÊõ×ÖÍϵ½Ô²ÐεÄÉÏ¡¡
·½£¬ÔÚÒÕÊõ×Ö¹¤¾ßÖÐÑ¡¨DÒÕÊõ×ÖÐÎ×´£Ï¸ÉÏÍ仡¡¬£¬°´×¡»ÆÉ«µÄËÄ·½¿éÍùÏÂÀ£¬ÔÙ×÷Êʵ±µÄµ÷Õû£¬¡¡
¾Í¿ÉÒÔ×ö³ö¹«ÕÂÀïµÄÔ²»¡ÐεÄÎÄ×ÖÁË¡£¹«ÕÂÖм仹ÓÐÒ»¸öºìÎåÐÇ£¬ÓèD¡¡×ÔѡͼÐΡ¬¡¡µÄÐÇÐξͿÉÒÔ¡¡
×ö³öÀ´ÁË£¬Ìî³äÑÕÉ«ºÍÏßÌõÑÕÉ«ÓúìÉ«¡£×îºó£¬°´×¡¨DShift¡¬¼ü°Ñ×é³É¹«ÕµÄÎÄ×Ö¡¢Í¼ÐÎÈ«²¿¡¡
Ñ¡ÉÏ£¬Ö´ÐÐÓÒ¼ü²Ëµ¥ÖеĨD×éºÏ¡¬ÃüÁһ¸ö¹«Õ¾Í×öºÃÁË¡£¡¡ÈçºÎ°Ñ×öºÃµÄ¹«Õ±£´æ³öÀ´£¿Õâ¡¡
ÀïÓÐÒ»·½·¨£º°Ñ¹¤×÷±íÁí´æΪWebÒ³£¬È»ºóµ½±£´æĿ¼ÖÐÕÒµ½*¡£filesµÄÎļþ¼Ð£¬ÀïÃæÓÐÒ»¸öGIF¡¡
ͼƬ£¬Õâ¾ÍÊǸղÅ×öºÃµÄ¹«ÕÂͼ°¸ÁË£¬ËüµÄ±³¾°ÊÇ͸Ã÷µÄ£¬ÎÒÃÇ°ÑËü¸ÄÃûΪgongzhang¡£gif±£¡¡
´æÏÂÀ´¼´¿É¡£¡¡µÚ¶þ²½£ºÌí¼Ó¨D¸ÇÕ¡¬°´Å¥¡¡½ÓÏÂÀ´ÎÒÃǸøExcelÌí¼ÓÒ»¸ö¸ÇÕ°´Å¥£¬µ±Ò»¸ö¹¤×÷¡¡
±í×öºÃºó£¬µã»÷Õâ¸ö¸ÇÕ°´Å¥£¬¾Í¿ÉÒÔΪÎÒÃǸÇÉϹ«ÕÂÁË¡£¡¡ÏȰѹ«ÕÂͼÐθ´ÖƳöÀ´£¨ÓÃÀ´Õ³¡¡
Ìù×÷Ϊ°´Å¥µÄͼ±ê£©£¬È»ºó´ò¿ª¨D¹¤¾ß£×Ô¶¨Ò塬¶Ô»°¿ò£¬Ñ¡ÖШDÃüÁ±êÇ©£¬ÔÚ¨DÀà±ð¡¬À¸ÖÐÕÒµ½¡¡
¨Dºê¡¬£¬ÔÚÓұߵĨDÃüÁÀ¸Àï¾Í»á³öÏÖÒ»Ïî¨D¡¡×Ô¶¨Òå°´Å¥¡¬¡¡¡£ÓÃÊó±ê°ÑÕâ¸öЦÁ³Í¼±êÍϳöµ½²Ëµ¥À¸¡¡
»ò¹¤¾ßÀ¸ÉÏ·ÅÏ£¬ÔÚЦÁ³Í¼±êÉÏ»÷ÓÒ¼ü£¬ÔÚµ¯³öµÄ²Ëµ¥ÖаѨDÃüÃû¡¬´¦µÄÎÄ×Ö¸ÄΪ¨D¼Ó¸Ç¹«Õ¡¬¡¡¡£¡¡
½ÓÏÂÀ´µã»÷¨DÕ³Ìù°´Å¥Í¼±ê¡¬Õâ¸öÃüÁ¾Í¿ÉÒÔÓøպ͸´ÖƵĹ«ÕÂͼÐÎÀ´´úÌæЦÁ³Í¼±êÁË¡£°ÑÊó¡¡
±êÒÆÏÂÀ´Ñ¡ÖШD·ÖÅ䳬¼¶Á´½Ó£²åÈëͼƬ¡¬£¬È»ºóÔÚ¨DÇë¼üÈëÎļþÃû³Æ»òWebÒ³Ãû³Æ¡¬À¸ÀïÊäÈ빫¡¡
ÕÂͼƬgongzhang¡£gifµÄÎļþÃû¼°Â·¾¶£¬È»ºó°´¨DÈ·¶¨¡¬·µ»Ø¡£¡¡ºÃÁË£¬¿´µ½¨D¼Ó¸Ç¹«Õ¡¬Õâ¸ö°´Å¥¡¡
ÁË°É£¬µã»÷һϿ´¿´£¬ºÇºÇ£¬Ò³ÃæÉϾ͸ÇÉÏÒ»¸öÏʺìµÄ¹«ÕÂÁË£¬ÓÃÊó±ê¿ÉÒÔ°ÑËüÍϵ½ÈÎÒâµÄµØ¡¡
·½¡£ÔÚWordÎĵµÖмӸǹ«Õµķ½·¨Óë´Ë´óͬСÒ죬´ó¼Ò¿ÉÒÔ×Ô¼ºÊÔÒ»ÊÔ¡£¡¡76¡¢ÈçºÎʹijһ¸ö¡¡
¹Ì¶¨µÄ²Ëµ¥ÏîÎÞЧ¡¡¡¡Application¡£mandBars£¨¡¨File¡¨£©¡£Controls£¨6£©¡£Enabled¡¡=¡¡False¡¡¡¡
Controls£¨6£©ÖеÄ6¾ÍÊÇËùÔڲ˵¥À¸µÄÐÐÊý¡¡ÎÒ¾õµÃÕâÑù¿ÉÄܸü¿É¿¿£º¡¡Dim¡¡i¡¡As¡¡Integer¡¡For¡¡i¡¡¡¡
=¡¡¡¡¡¡¡¡¡¡¡¡1¡¡¡¡¡¡¡¡¡¡¡¡To¡¡¡¡¡¡¡¡¡¡Application¡£mandBars£¨¡¨File¡¨£©¡£Controls¡£Count¡¡¡¡If¡¡¡¡
Application¡£mandBars£¨¡¨File¡¨£©¡£Controls£¨i£©¡£Caption¡¡¡¡=¡¡¡¡¡¨¡¡Áí¡¡´æ¡¡Îª¡¡£¨&A£©¡£¡£¡£¡¨¡¡¡¡Then¡¡¡¡
Application¡£mandBars£¨¡¨File¡¨£©¡£Controls£¨i£©¡£Enabled¡¡=¡¡False¡¡End¡¡If¡¡Next¡¡i¡¡77¡¢Çë½Ì¡¡
´ó¼Ò£¬ÎÒÏëÔÚEXCELÎļþÍ˳öʱ£¬Áí´æΪµ±Ç°Ä¿Â¼ÏµÄ×ÓĿ¼BAKÖУ¬±ÈÈçEXCELÎļþÔÚCÅÌ£¬¾Í¡¡
Áí´æΪC£ºBAK×ÓĿ¼Ï£¬µ«EXCELÎļþµÄλÖò»È·¶¨£¬²»ÖªÈçºÎдÓï¾ä£¿¡¡×