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

[µo°Ý] Àx¦s®æ¤ºªº¦h¬q¤å¦r¦r¦êÅܲÊ

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2019-12-4 17:53 ½s¿è

¦^´_ 1# wind6424
  1. Sub Test()
  2.     MyForm Sheets("Sheet1").[A2]
  3. End Sub
½Æ»s¥N½X
  1. Sub MyForm(rng As Range)
  2.     Dim text As String
  3.     Dim re As Object: Set re = CreateObject("vbscript.regexp")
  4.    
  5.     With re
  6.         .Pattern = "^\d+([.]\d+)+\s.*"
  7.         .MultiLine = True
  8.         .Global = True
  9.     End With
  10.     For Each cell In rng
  11.         text = cell.Value
  12.         For Each mch In re.Execute(text)
  13.             cell.Characters(Start:=mch.FirstIndex, Length:=mch.Length).Font.Bold = True
  14.         Next
  15.     Next
  16. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 5# wind6424
½Ķ¹L¨Ó´N¬O¤Ç°t¶}ÀYªº²Ä¤@²Õ¦r¬O¥H¦Ü¤Ö¤@­Ó . ¤À¹j¼Æ¦rªº¦r²Õ¡C
¦³¿³½ì¥i¥H°Ñ¦Ò¤@¤U
http://www.study-area.org/coobila/tutorial_441.html
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

        ÀR«ä¦Û¦b : ¤p¨Æ¤£°µ¡B¤j¨ÆÃø¦¨¡C
ªð¦^¦Cªí ¤W¤@¥DÃD