View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pat Pat is offline
external usenet poster
 
Posts: 122
Default Ok or Cancel code

'Use the Find method to find the Our ref. number on the sales sheet
Set rng = SlsSh.Range("BP1:IV1").Find(InvSh.Range("K23").Val ue, , , xlWhole)

After the above portion of code runs I want to only allow the code to
continue only if the cell below the cell that is found is empty in Row2. If
it is not empty the message box should give the option to select OK to
continue and overright the existing information or CANCEL to cancel the
code.

Any one know how I can go about this?
Many thanks if you can be of help.
Pat