LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do you evaluate cell value in vba

I am trying to use a button to send a workbook on a condition of cell
F7 having the value of 15 or more. If the value is less than 15, a
msgbox displays telling the user to populate all fields in order for
them to send. If the value equals 15 or more, an e-mail window opens
with the workbook attached. Currently, everytime i click the submit
button, it gives me the msgbox and does nothing else regardless of what
value is in F7.

Here's the code I have written so far:
===========================================
Private Sub Send_Click()

If ( F7 < 15 ) Then
MsgBox ("You must populate all required fields to send.")
Else
ActiveWorkbook.SendMail Recipients:=MailTo
End If



End Sub
===========================================
Suggestions please?

 
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
How do I evaluate A1 from cell A2 and place a value into A3? RMar10 Excel Discussion (Misc queries) 5 February 18th 09 03:21 PM
evaluate cell value with sheet name [email protected] Excel Worksheet Functions 5 October 4th 07 09:41 PM
Evaluate Range of Cell halem2[_82_] Excel Programming 2 July 3rd 06 04:51 PM
Evaluate a cell evalute 3 cell based on result stevem8435 Excel Programming 1 January 27th 06 09:23 AM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM


All times are GMT +1. The time now is 07:19 AM.

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

About Us

"It's about Microsoft Excel"