Jessica1979
New Member
- Joined
- Oct 16, 2013
- Messages
- 3
Hi, I'm a newbie to macro, and am stuck...help!
The worksheet needs to automatically pops up a warning message whenever range of cells K12 to K27 equals to 815500. I got it to partially work with the code:
______________________________________
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("K12").Value = 815500 Then
MsgBox ("GL Account #815500 - Training & Education: requires CEU form approved by HR and must be included for reimbursement " & ". Continue?"), vbYesNo
End If
End Sub
_____________________________________
Issue 1) macro only applies to cell K12, how do I apply to range of cells K12 to K27?
Issue 2) macro now run all the time when K12 = 815500, how do I get it to only display the message box once and stop (until the next cell = 815500 between cell range K12 to K27)?
Help...my hair's going to turn white from thinking so much...
The worksheet needs to automatically pops up a warning message whenever range of cells K12 to K27 equals to 815500. I got it to partially work with the code:
______________________________________
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("K12").Value = 815500 Then
MsgBox ("GL Account #815500 - Training & Education: requires CEU form approved by HR and must be included for reimbursement " & ". Continue?"), vbYesNo
End If
End Sub
_____________________________________
Issue 1) macro only applies to cell K12, how do I apply to range of cells K12 to K27?
Issue 2) macro now run all the time when K12 = 815500, how do I get it to only display the message box once and stop (until the next cell = 815500 between cell range K12 to K27)?
Help...my hair's going to turn white from thinking so much...

Last edited: