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

[¤À¨É] ¦brange¤¤´M§ä¦Û¤w·Q­nªº­È¡A¨Ã¥B©³®æÅܦâ

¦^´_ 2# pegawang
¤]¥i¦p¦¹¼gªk
  1. Option Explicit
  2. Sub Ex()  'Sub Find()  :Find ¬OVBA±MÄݪº¤å¦rµ{¦¡ªº¦WºÙÁקK¨Ï¥Î
  3.     Dim FindString As String
  4.     FindString = InputBox("½Ð¿é¤J¼Æ­È")
  5.     If FindString <> "" Then
  6.         With Range("E1:I3000")
  7.             .Cells.Replace FindString, "=1/0", xlWhole           '**¿é¤Jªº¤å¦r´À´«¬°¿ù»~­È
  8.             On Error Resume Next                                          '**¤£²z·|µ{¦¡¤Wªº¿ù»~,Ä~Äò°õ¦æµ{¦¡
  9.            With .SpecialCells(xlCellTypeFormulas, xlErrors)  '**¨S¦³¿ù»~­È, µ{¦¡·|¿ù»~¦Ó¤¤Â_
  10.                 If Err = 0 Then
  11.                     .Parent.Cells.Interior.ColorIndex = xlNone
  12.                     .Value = FindString
  13.                    .Interior.ColorIndex = 4
  14.                 Else
  15.                     MsgBox "§ä¤£¨ì  " & FindString
  16.                 End If
  17.             End With
  18.         End With
  19.     End If
  20. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD