TheCovenant75
New Member
- Joined
- Oct 24, 2023
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
Hey, im new to vba coding and im trying to create an automated macro that constantly checks two cell values for my worksheet .
Basically i want it to check cell A12 and if its equal and or less than 250 to update Cell C12 with the number 250
I had tried to do it like this with what i learned from youtube videos (I'm sorry in advance if this hurts anyone here to read (>_<) )
Private Sub Worksheet_Change(ByVal Target As Range)
IF Sheets("Load Calculator").Cells(12, 1).Value => 250 then Sheets("Load Calculator").Cells(12, 3).Value = 250
End IF
End Sub
Basically i want it to check cell A12 and if its equal and or less than 250 to update Cell C12 with the number 250
I had tried to do it like this with what i learned from youtube videos (I'm sorry in advance if this hurts anyone here to read (>_<) )
Private Sub Worksheet_Change(ByVal Target As Range)
IF Sheets("Load Calculator").Cells(12, 1).Value => 250 then Sheets("Load Calculator").Cells(12, 3).Value = 250
End IF
End Sub