It will probably work, since any numeric value other than 0 is usually
interpreted as True in Boolean assignments, but vbYes is actually one
of the defined (Integer) vbMsgBoxResult return values, not a Boolean
value.
As others have implied, the OP's syntax is correct, but there may be a
missing .Update statement.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.