Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all need some help
Problem I have a excel page and I want the user to enter his/her name in cell b4. I want to validate this by saying if there is nothing entered in that field they get a pop up saying enter your name please. If their name is entered I want it to carry on running at the moment it seem to tell them to enter their name even if they have entered it. If Sheet2.Range("b4").Value = "" Then MsgBox ("Please enter your Name") Else: Sheet2.Range("a2").Value = (Sheet1.Range("b4").Value end if any help would be amazing thanks guys/girls .... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What you have there does not even compile. Does this work for you...
If Sheet2.Range("b4").Value = "" Then MsgBox ("Please enter your Name") Else Sheet2.Range("a2").Value = Sheet1.Range("b4").Value End If -- HTH... Jim Thomlinson "millwalll" wrote: Hi all need some help Problem I have a excel page and I want the user to enter his/her name in cell b4. I want to validate this by saying if there is nothing entered in that field they get a pop up saying enter your name please. If their name is entered I want it to carry on running at the moment it seem to tell them to enter their name even if they have entered it. If Sheet2.Range("b4").Value = "" Then MsgBox ("Please enter your Name") Else: Sheet2.Range("a2").Value = (Sheet1.Range("b4").Value end if any help would be amazing thanks guys/girls .... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF statement inside a SUMIF statement.... or alternative method | Excel Worksheet Functions | |||
Reconcile Bank statement & Credit card statement & accounting data | Excel Worksheet Functions | |||
Embedding an OR statement in an IF statement efficiently | Excel Discussion (Misc queries) | |||
appending and IF statement to an existing IF statement | Excel Worksheet Functions | |||
Excel VBA- If Then statement | Excel Programming |