Results 1 to 3 of 3

Msg Box to clear content error

Threaded View

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    Nuwara Eliya, Sri Lanka
    MS-Off Ver
    Excel 2007
    Posts
    54

    Msg Box to clear content error

    I cant get this code to work.. can someone help me..

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    With Worksheets("Formulation")
    If .Range("d3") <> "" _
    Or .Range("d5") <> "" _
    Or .Range("d6") <> "" Then
    MsgBox ("Please delete content in Formula No, Batch No & QTY")
    End If
    
    End Sub
    Last edited by SARC777; 08-16-2010 at 03:56 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1