+ Reply to Thread
Results 1 to 4 of 4

Problem in msgbox

  1. #1
    Registered User
    Join Date
    12-29-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Problem in msgbox

    Hi,

    I ve created a calculator which calculates the manpower required for a operation. If the operator increases 28 then I need a pop up box which says max operators can be 28. I ve the code but it tells me run time error 13.

    Private Sub Worksheet_Change(ByVal Target As Range)

    Set Target = Me.Range("AE2:AM2")


    If Target.Value > 28 Then
    MsgBox "Max Operator available is 28 in Shift 1."
    End If


    End Sub

    The input cells are AE2, AI2 and AM2.

    So Wht wrong am I doing here

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Problem in msgbox

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    12-29-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Problem in msgbox

    Hi AndyLitch,

    So How do I proceed with this??

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Problem in msgbox

    Please Login or Register  to view this content.
    Change the address on line 2 and try that

+ Reply to Thread

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