Closed Thread
Results 1 to 2 of 2

Multi Cell Check

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    London,england
    MS-Off Ver
    Excel 2007
    Posts
    5

    Multi Cell Check

    I need to run a sub in VBA to check that four cell have a value greater than 0. And then if the answer is yes of no to complete the correct task. have used the following which will work for 1 cell but not 2.

    Sub OUR_PRICE(Value)
    If Range("F47").Value > 0 Then
    If Range("F49").Value > 0 Then
    Application.Run "Slip_number"
    Else
    Application.Run "OUR_ERROR"
    End If
    End Sub

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,009

    Re: Multi Cell Check

    Duplicate, so closed.
    Everyone who confuses correlation and causation ends up dead.

Closed 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