Write Numbers To A1: A5 And Give Warnings To C1 İf Their Sum İs Not 100 Online Excel and Excel Macro (VBA) Courses Copy Macro 'For online Excel courses click: https://www.excelsizeyeter.com/excelwithkenan.com/udemy_giris.php Option Explicit Private Sub Worksheet_Calculate() ' Target value: Const lVal As Long = 100 Dim rCell As Range ' Put the cell you want to look at here ' Cell must be a formula!! Set rCell = Range("C1") ' If the target cells value rises above the specified target value, If rCell.Value > lVal Then ' then deliver a message MsgBox "Target value is above " & lVal, 16, "Too High!" ' And step backwards Application.Undo End If ' Explicitly clear memory Set rCell = Nothing End Sub Report problem with this macro This macro does not work. There's an error in the code. Other You can write your comments about the error in the box below. Report error ALL MACROS Youtube Channel The following macros may be useful for you. Similar Results NoMacro Name 1 Write numbers to a1: a5 and give warnings to c1 if their sum is not 100 2 Write numbers to a1: a5 and warns c1 if their total is 100 3 Write numbers to a1: a5 and warns c1 if their total is less than 100 4 write the days of this month to the right write the day to the child cell and color the weekends 5 excel operators hk 6 inserts months as sheet / pages Specifies days in detail 7 list formulas on new sheet / page 8 specifies in detail how many formulas are in the book (on new sheet / page) 9 automatic image fetch 10 Inputbox add year as summer 11 How to write a copy macro in excel? 12 convert double and single lines into different colors and designs (one line is bold and the other line is normal) 13 return one or more values in a macro 14 Adds sheet / pages based on data in column A and writes data up to column D 15 summer adds months to sheet / pages 16 I want to throw the full cells in row with text between a1: an1000 into listbox 17 status bar macro with a message waiting 18 Finding the Number of Each Item in the List Using the VBA and Pivot Table 19 pushbutton pictures 20 add icons menus and buttons to the sheet / page