Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default else if code

i have a code that says
If Range("AL2,AL4,AL6,AL8") = Range("AP12") The
SubmitAl

ElseIf Range("AL2") 0.01 The
submitALLcas

Els
M
what i want to happen is if the sum of "AL2,AL4,AL6,AL8 is less then AP12 msgbox to appear, if it is greater then ap12, then SubmitAL
also is everything is greater and AL2 is greater then 0, i want SubmitALLcash to g

please help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default else if code

Try something like this

If Application.Sum(Range("AL2,AL4,AL6,AL8")) < Range("AP12").Value Then
MsgBox "Your message here"
Else
SubmitAll
If Range("AL2").Value 0 Tjhen
SubmitAllCash
End If
End If

--
Regards,

Juan Pablo González

"choice" wrote in message
...
i have a code that says:
If Range("AL2,AL4,AL6,AL8") = Range("AP12") Then
SubmitAll

ElseIf Range("AL2") 0.01 Then
submitALLcash

Else
Ms
what i want to happen is if the sum of "AL2,AL4,AL6,AL8 is less then AP12

msgbox to appear, if it is greater then ap12, then SubmitALL
also is everything is greater and AL2 is greater then 0, i want

SubmitALLcash to go

please help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default else if code

If Worksheetfunction.Sum(Range("AL2,AL4,AL6,AL8")) < Range("AP12") Then
Msgbox ..........
ElseIf Range("AL2") 0.01 Then
SubmitALLcash
Else
SubmitAll
End If

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"choice" wrote in message
...
i have a code that says:
If Range("AL2,AL4,AL6,AL8") = Range("AP12") Then
SubmitAll

ElseIf Range("AL2") 0.01 Then
submitALLcash

Else
Ms
what i want to happen is if the sum of "AL2,AL4,AL6,AL8 is less then AP12

msgbox to appear, if it is greater then ap12, then SubmitALL
also is everything is greater and AL2 is greater then 0, i want

SubmitALLcash to go

please help



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Code to conditional format all black after date specified in code? wx4usa Excel Discussion (Misc queries) 3 December 26th 08 07:06 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Convert a Number Code to a Text Code Traye Excel Discussion (Misc queries) 3 April 6th 07 09:54 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


All times are GMT +1. The time now is 02:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"