Results 1 to 6 of 6

Selecting A Cell Needs To Displays A Message Box

Threaded View

whatsmyname Selecting A Cell Needs To... 12-13-2010, 12:56 PM
Avinash Beepath Re: Selecting A Cell Needs To... 12-13-2010, 02:22 PM
whatsmyname Re: Selecting A Cell Needs To... 12-13-2010, 04:15 PM
royUK Re: Selecting A Cell Needs To... 12-13-2010, 04:22 PM
whatsmyname Re: Selecting A Cell Needs To... 12-13-2010, 04:32 PM
whatsmyname Re: Selecting A Cell Needs To... 12-14-2010, 05:00 PM
  1. #1
    Forum Contributor
    Join Date
    09-09-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    185

    Selecting A Cell Needs To Displays A Message Box

    Hello all,

    I am trying to have a message box automatically pop up when a cell is selected. In the message box there should be a question with a yes and no button. If no is selected then it would automatically select another cell. If yes is selected then it would allow the user to go ahead and enter data into that cell. Basically I want to lock that cell from having data typed into it unless the user selects yes.

    It would also be nice to if I could have this same message box if they click the print button.

    I am still learning but this is my attempt at this:

    Sub dateQs()
    
    
    If range("M9").Select Then
    
    MsgBox("Have You Finished Filling Out The Entire WorkOrder?", vbYesNo) = vbNo
    
    
    Else: MsgBox("Please Complete Filling Out The WorkOrder!", vbYesNo) = vbYes
    
    End If
    
    
    
    End Sub
    Your help is greatly appreciated, thank you!
    Last edited by whatsmyname; 12-13-2010 at 12:59 PM.

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