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

¦p¦ó©I¥sExcel¤º´M§ä¤Î¨ú¥Nªº¡i±qÀx¦s®æ¿ï¾Ü®æ¦¡¡j

¦p¦ó©I¥sExcel¤º´M§ä¤Î¨ú¥Nªº¡i±qÀx¦s®æ¿ï¾Ü®æ¦¡¡j

Hi ¦U¦ì«e½ú
¤pªº·Q½Ð°Ý¤j®a¡A¬O§_ª¾¹D«ç»ò¼Ë¥i¥H¶}±ÒExcel¤º´M§ä¤Î¨ú¥Nªº¡i±qÀx¦s®æ¿ï¾Ü®æ¦¡¡j¡A¦]¬°·Q¥Î­Ó¨Ó§ì¨ìFindFormatªº®æ¦¡¡AÁٽЪ¾¹Dªº«e½ú¯àµ¹¤©«ü¾É¡A·PÁ±z¡C
clio

¥»©«³Ì«á¥Ñ a5007185 ©ó 2018-7-26 13:14 ½s¿è

´N¥Ø«e§ÚÆ[¹î¿ý»s¥¨¶°ªºµ²ªG¡A
¥L¬O±N¸ÓÀx¦s®æ©Ò¦³ªº®æ¦¡Äݩʪ½±µ¤Þ¥Î¶iFindFormat

§A¥i¥H¦Ò¼{¥ý¦Ò¼{§A­n¥Î¤°»ò¼Ëªº®æ¦¡¶µ¥Ø¶i¦æ¿z¿ï¡A
¤§«áª½±µ¤Þ¥Î¸ÓÀx¦s®æªº®æ¦¡§@¬°±ø¥ó´N¦n¡C

¨Ò¦p¦pªG¬O¥Ø¼ÐÀx¦s®æ¡u¦rÅé¤j¤p¡v§@¬°±ø¥ó¡A
§A¥i¥H³o»ò°µ
  1. Application.FindFormat.Clear
  2. Application.FindFormat.Font.Size = Range("A1").Font.Size
  3. Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False , MatchByte:=False, SearchFormat:=True).Activate
½Æ»s¥N½X
µ¹§A­Ó°Ñ¦Ò
¥H¤W¤p§Ì©å¨£¡A­Y¤º®e¦³»~¡A·q½Ð½ç±Ð¡AÁÂÁ¡I

TOP

¦^´_ 2# a5007185
³o­Ó¤èªk½T¹ê¥i¥H¡A¦ý¬O´N¬O°w¹ï¦³¨Ç¤w¸g¯S©wªº®æ¦¡¨Ó»¡¡A­Y¬O­nÅý¨Ï¥ÎªÌ¦Û¦æ¿ï¨ú¬Y¤@­ÓÀx¦s®æ¡A¥H³o­Ó¬°¼Ð·Ç¨Ó¤ñ¹ï¡A¤]¬O¥i¥H¦Û¦æ¼g¤@­Ó¤pFunction±N©Ò¦³ªº®æ¦¡¸ê°T¤@­Ó­Ó½Æ»s¡A¦ý¬O§Ú´£¨ìªº¨º­Ó¤èªk¡A¬O¥i¥Hª½±µ½Æ»s®æ¦¡¡A¦Ó¥B³oºØ¤èªk¡A¥i¥H°w¹ï¶K¤Wªº®æ¦¡¨Ó¿ï¾Ü¡A¦]¬°­Y¬Oª½±µ¶i¦æ¶K¤W®æ¦¡ªº³]©w®É¡A¦X¨ÖÀx¦s®æ³o¤@¶µ¬OµLªk¿ï¨ú¡A¦ý¬O­Y¥Î¤W­z¤è¦¡¡A«h¥i¥H¡A©Ò¥H¤~·Qª¾¹D¦p¦ó©I¥s¥X¨º­Óµøµ¡
clio

TOP

´N§Úªº²z¸Ñ¡A
¨ä¹ê«Ü¦h¤¶­±¤]¬O·tÂüƶµªº«ü¥O¡A
¥u¬O¥L²¤Æ¦¨¤@Áä°õ¦æªº®ÄªG¡A
§Ú¦³µy·Lª¦¤@¤U¤å¡A
¥Ø«e³£¨S¦³¬Ý¨ì¡i±qÀx¦s®æ¿ï¾Ü®æ¦¡¡j¬ÛÃöªº«ü¥O¡A
¥i¯à¦³¤]¥i¯à¨S¦³¡A
³o´N»Ý­n¨ä¥L¤j¤j´£¨Ñ¬ÛÃö¸ê°T¤F~

¥t¥~¡A¦pªG§A¬O§Æ±æ¯à°÷§ä¥X¦X¨ÖÀx¦s®æ¡A
§A¥i¥H¥Î¥H¤Ucmd¡A
  1. Sub FindMerge()
  2.     Application.FindFormat.Clear
  3.     Application.FindFormat.MergeCells = True
  4.     Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, _
  5.     SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, MatchByte:=False, SearchFormat:=True).Activate
  6. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤Ñ¤W³Ì¬ü¬O¬P¬P¡A¤H¥Í³Ì¬ü¬O·Å±¡¡C
ªð¦^¦Cªí ¤W¤@¥DÃD