LoginSignup
0
0

More than 3 years have passed since last update.

Excel小技(VBA)特定文字列セルの隣セルにコメントを追加する

Last updated at Posted at 2019-09-11
VBA
ub updateAllSheet()

Application.ScreenUpdating = False 
  Dim シート As Worksheet
      For Each シート In Worksheets
          シート.Select
          Call rowJ
      Next シート
Application.ScreenUpdating = True

MsgBox ("Finished")
End Sub



Sub rowJ()

For i = 1 To 100
 a = "*コメント*"
 If Cells(i, 7).Value Like a Then

  Cells(i, 10).Value = Cells(i, 10).Value + " コメントを追加する"
  Cells(i, 10).Interior.ColorIndex = 38

 End If

 Next i


End Sub


0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0