Help with MsgBox

r_harri1972

New Member
Joined
Sep 23, 2014
Messages
37
Here is the code i have...i have it in This Workbook.

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
With Sheets("Sheet3")
If .Range("F10").Value And .Range("K10").Value <> "" Then
MsgBox "SHIP DATE AND DUE DATE HAS BEEN SUCCESSFULLY SET"
Unload CALENDAR ' this is the name of a UF
End If
End With

But...any time i make a change afterwards the msgbox appears. I am sure it has to do with the fact that it is because of the _SheetChange.

I don't know where to put this code.

Please let me know if you need more information.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Call MsgBox("SHIP DATE AND DUE DATE HAS BEEN SUCCESSFULLY SET", vbExclamation, Application.Name)


or


Call MsgBox("SHIP DATE AND DUE DATE HAS BEEN SUCCESSFULLY SET", vbExclamation Or vbSystemModal, Application.Name)

Modal should stop it moving on until acknowledged
 
Upvote 0
you are calling a work SHEET change event so it needs to be on the sheet, or called from there, not the work BOOK
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top