Results 1 to 2 of 2

VBA Cell-cell check which results in a msgboz

Threaded View

NZSF Daemon VBA Cell-cell check which... 11-11-2014, 05:45 PM
protonLeah Re: VBA Cell-cell check which... 11-12-2014, 01:22 AM
  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    1

    VBA Cell-cell check which results in a msgboz

    Hi All,

    I want to activate this macro as a Target_change
    I want the macro to warn a user if the floor coverings exceed the GFA (GrossFloorArea)

    Private Sub FloorArea()
    Dim QtyEntry As Integer
    Dim Msg As String
    Dim Response
    Dim cell As Range
    GFA = Sheets("Questionaire").Range("G88").Value
    FloorFinish = Sheets("Questionaire").Range("N357").Value
    Target.Address = Sheets("Questionaire").Range("N357")
    
    If Target.Address < GFA Then Exit Sub
    
    
    On Error GoTo ErrHandler
    Application.EnableEvents = False
    If Target.Address > GFA * 1.1 Then
    MsgBox "Floor area exceeds the GFA", vbCritical, "Warning"
    
    Response = MsgBox("Would you like to Override this?", vbYesNo)
    
    If Response = vbYes Then
    Application.Goto Reference:=Worksheets("Questionaire").Range("G358")
    
    
    
    QtyEntry = InputBox(Msg)
    Sheets("Questionaire").Range("G358").Value = QtyEntry
    
    If Response = vbNo Then
    MsgBox ("Please remember later")
    
    End If
    End If
    End If
    ErrHandler:
    Application.EnableEvents = True
    
    End If
    End If
    
    
    
    End Sub
    Was getting it, then lost it. Now i have confused myself.

    Also how do you post code in the code box?

    As always any help will be greatly appreciated.


    Daemon
    Last edited by Leith Ross; 11-11-2014 at 08:34 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Check a column for >0 then put results to a desired cell location
    By nicksenior in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2014, 11:18 AM
  2. [SOLVED] Check one cell, check second cell, return relevant value
    By NeroM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2014, 10:00 AM
  3. Script to have your form check the contents of a cell and reply different results
    By steve_from_the_uk in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-05-2014, 03:35 PM
  4. [SOLVED] Loop through check boxes, results in 1 cell
    By tbar05 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2013, 12:48 AM
  5. Check validation cell results and react accordingly
    By vikki444 in forum Excel General
    Replies: 3
    Last Post: 02-23-2012, 05:33 AM

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