【至急‼】有識者の方、お力をお貸しください!<(_ _)> エクセルのマクロについてご教示願いたいです! 下記のようなマクロに下記の追加事項を追加したいです。マクロについて知識がなく力不足であるため皆さんのお力をお借りしたいです! 詳しい方いましたらお力添えお願いいたします!不足情報ありましたら連絡ください! ●追加事項 ・追加事項① 果物列が空白の場合以外に、"完了"という文字についても"完了"と入力する。 ただし、一度同じ行に"完了"と入力されている場合は何も入力しない。 ・追加事項② マクロ適用範囲としては、番号が入っている行のみとする。現在のマクロの場合、赤枠の番号の入っていない行にも"完了"表示がされてしまうためです。 ・追加事項③ Sheet2の"更新"ボタンでマクロを実行した場合、Sheet4、Sheet5についてもマクロを適用させる。※Sheet4、Sheet5については番号、果物、日付の列、行が異なります。 ◆マクロ Sub Sample() Dim ws3 As Worksheet: Set ws3 = Worksheets("Sheet3") Application.ScreenUpdating = False With Worksheets("Sheet2") Dim todayCol As Variant todayCol = Application.Match(CLng(Date), .Rows(6), 0) If IsError(todayCol) Then Exit Sub Dim r As Long For r = 2 To .Cells(Rows.Count, "B").End(xlUp).Row If IsError(Application.Match("完了", Rows(r), 0)) Then If .Cells(r, "C").Value = "" Then .Cells(r, todayCol).Value = "完了" .Cells(r, todayCol).Font.Color = rgbRed .Cells(r, todayCol).Font.Bold = True .Cells(r, todayCol).Interior.ColorIndex = xlNone .Cells(r, todayCol).HorizontalAlignment = xlCenter .Cells(r, todayCol).VerticalAlignment = xlCenter Else Dim sheet3Row As Variant sheet3Row = Application.Match(.Cells(r, "C").Value, ws3.Columns("B"), 0) If IsNumeric(sheet3Row) Then ws3.Cells(sheet3Row, "B").Copy .Cells(r, todayCol) End If End If End If Next End With Application.ScreenUpdating = True End Sub