Re: $$Excel-Macros$$ problem in if else function

2011-05-02 Thread rajan verma
> *Sub if_Save()*
> *If Sheet2.Range("M5") = ""  or **Sheet2.Range("M6") = ""  or ** 
> Sheet1.Range("P5:P9").count
> < 5** **Then*
> *msgbox ("Pleaes FullFill Entry " & Vbcrlf & "Name Shoud Be Enter " &
> Vbcrlf & " Code Should be Correct" & Vbcrlf &" Value Should be lesser  then
> 5", vbinformation*
>
   else

> *
> *
> *Call Test*
>
*  End If*

> *End Sub*
>

On Mon, May 2, 2011 at 2:07 PM, Pravin Kumar  wrote:

> Hi
>
> I am trying to write a code: I want to Call Test only if all the criteria
> fulfilled or else this should keep msging to get the details.. not able to
> finish it. Pls help.
> *
> *
> *
> *
> *Sub if_Save()*
> *If Sheet2.Range("M5") = ""  or **Sheet2.Range("M6") = ""  or ** 
> Sheet1.Range("P5:P9").count
> < 5** **Then*
> *msgbox ("Pleaes FullFill Entry " & Vbcrlf & "Name Shoud Be Enter " &
> Vbcrlf & " Code Should be Correct" & Vbcrlf &" Value Should be lesser  then
> 5", vbinformation*
>
else

> *End If*
> *Call Test*
> *End Sub*
>
>  --
>
> --
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>



-- 
Regards
Rajan verma
+91 9158998701

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


RE: $$Excel-Macros$$ problem in if else function

2011-05-02 Thread Daniel
Hi,

 

Sub if_Save()

If Sheet2.Range("M5") = "" Then

MsgBox ("Please enter Name")

ElseIf Sheet2.Range("M6") = "" Then

MsgBox ("Please enter Code")

ElseIf Sheet1.Range("P5:P9").count < 5 Then

MsgBox ("Please fill all the details")

Else

Call Test

End If

End Sub

 

Regards.

Daniel

De : excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] De
la part de Pravin Kumar
Envoyé : lundi 2 mai 2011 10:38
À : excel-macros@googlegroups.com
Objet : $$Excel-Macros$$ problem in if else function

 

Hi

 

I am trying to write a code: I want to Call Test only if all the criteria
fulfilled or else this should keep msging to get the details.. not able to
finish it. Pls help.

 

 

Sub if_Save()

If Sheet2.Range("M5") = "" Then

MsgBox ("Please enter Name")

ElseIf Sheet2.Range("M6") = "" Then

MsgBox ("Please enter Code")

ElseIf Sheet1.Range("P5:P9").count < 5 Then

MsgBox ("Please fill all the details")

End If

Call Test

End Sub

 

-- 

--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links :
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
 
<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


$$Excel-Macros$$ problem in if else function

2011-05-02 Thread Pravin Kumar
Hi

I am trying to write a code: I want to Call Test only if all the criteria
fulfilled or else this should keep msging to get the details.. not able to
finish it. Pls help.
*
*
*
*
*Sub if_Save()*
*If Sheet2.Range("M5") = "" Then*
*MsgBox ("Please enter Name")*
*ElseIf Sheet2.Range("M6") = "" Then*
*MsgBox ("Please enter Code")*
*ElseIf Sheet1.Range("P5:P9").count < 5 Then*
*MsgBox ("Please fill all the details")*
*End If*
*Call Test*
*End Sub*

-- 
--
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel