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

[µo°Ý] «ö¦Û°Ê½Õ¾ãÄæ¼e,³£·|½Õ¾ã¨ì"255Äæ¼e",¬°¤°»ò©O?

[µo°Ý] «ö¦Û°Ê½Õ¾ãÄæ¼e,³£·|½Õ¾ã¨ì"255Äæ¼e",¬°¤°»ò©O?

§Ú¤@­Ó¤u§@靈³\¦hsheet,°ß¿W¦³¤@±isheet,ÂùÀ»Äæ½s¸¹¥kÃä®Ø½u,©ÎªÌ¿ï¾Ü¦Û°Ê½Õ¾ãÄæ¼e,¬Æ¦Ü°õ¦æVB>[a:a].entirecolumn.autofit³£§âÄæ¼e½Õ¾ã¨ì255,¤£ª¾¤°»ò­ì¦].
¦]¬°¨CÄæ¬Y¨Ç¦C·|¦³"*",§Ú¬°¤F¹j¶}2³¡¤À¸ê®Æ¥Î"*",§ÚÃhºÃ"*"¦Û°Ê½Õ¾ãÄæ¼e·|Åܦ¨255,©Ò¥H§â¥þ³¡"*"§ï¬°"^^^",µ²ªGÁÙ¬O¤@¼Ë,¦A§â"^^^"§ï¬°"123"ÁÙ¬O¤£¯à¦Û°Ê½Õ¾ãÄæ¼e.
lmh

§Ú¦Û¤v§ä¨ì°ÝÃD­ì¦],¼È¥B¸Ñ¨M¤F°µ¤å¥óªº§x¹Ò,»P¤j®a¥æ¬y¤@¤U:
²{¦b°ÝÃD¬O§Ú°õ¦æ¥¨¶°­nusedrangeªºÄæ¼e³£autofit,³o«Ü¥­±`,¤]±`±`·|³o¼Ë°µªº.°ÝÃD¬O¥¨¶°°õ¦æ§¹Äæ¼e¦}¤£§ïÅÜ,¬Æ¦ÜÄæ¼e·|Åܦ¨255?§ÚÃhºÃ¬OwindowªºÅã¥Ü°ÝÃD,©Ò¥H§Ú¥ý§âzoom½Õ¨ì100,¦A°õ¦æ­ì¨Óªº¥¨¶°,OK¤F!§Ú²{¦b°µªk¬O°õ¦æautofit»y¥y«e¯d¤Uuser­ì¨Óªºzoom­È,vb§âzoom½Õ¨ì100,¦A°õ¦æautofit»y¥y,°õ¦æ§¹¦A¥ÎVB§âzoom½Õ¨ìuser­ì¨Óªº­È:
a=activewindow.zoom
activewindow.zoom=100
activesheet.usedrange.entircolumn.autofit
activewindow.zoom=a
§Úªº²z¸Ñ»P°µªk¤j®a¬O¤£¬O»{¦P©O?½Ð¦h¦h«ü±Ð
lmh

TOP

¦^´_ 1# mhl9mhl9
¶¶«K´£¤@´£§Ú³Ìªñ¸I¨ì¤]ÄÝ©óofficeªº°ÝÃD:
§Ú°µ­Ó¸û¤j«¬ªº¤å¥ó,¦³¤@­¶main sheet,¸ê®Æ¶q¤j,¦Ó¥B¦³½Ñ¦hevent,¦pªG§Ú°±¯d¦bmain sheetÃö³¬¤å¥ó,¦A¶}±Ò¦¹¤å¥ó,workbook_activate´N¤£¯à¦Û°Ê°õ¦æ!©Ò¥H§Ú¦bVB¨½³]­pÃö³¬¤å¥ó°±¯d¦b¬Y­Ó²³æ¤@¨Çªºsheet¤W,­«·s¶}±Ò¤å¥ó,workbook_open©Mworkbook_activate³£¥¿±`¦Û°Ê°õ¦æ¤F.
¤£ª¾¤j®a¦³¨S¦³¸I¨ì¹LÃþ¦ü°ÝÃD.
lmh

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD