Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I can't seem to get my code to work. All i need to do is determine if a cell has a Name in it or if it is blank. Could i get some help please. Thanks -- tkemo569 ------------------------------------------------------------------------ tkemo569's Profile: http://www.excelforum.com/member.php...o&userid=29573 View this thread: http://www.excelforum.com/showthread...hreadid=493150 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi T,
Perhaps this will help: '============= Public Sub Tester() Const sAdd As String = "A1" '<<==== CHANGE Const sName As String = "Test" '<<==== CHANGE If IsEmpty(Range(sAdd)) Then MsgBox "The cell " & sAdd & " is blank" ElseIf Range(sAdd) = sName Then MsgBox "The cell " & sAdd & "text = " & sName ElseIf InStr(1, Range(sAdd), sName, vbTextCompare) Then MsgBox "The cells " & sAdd _ & " text includes " & sName Else MsgBox "The contents " & sAdd & " = " _ & Range(sAdd).Value End If End Sub '<<============= -- --- Regards, Norman "tkemo569" wrote in message ... I can't seem to get my code to work. All i need to do is determine if a cell has a Name in it or if it is blank. Could i get some help please. Thanks -- tkemo569 ------------------------------------------------------------------------ tkemo569's Profile: http://www.excelforum.com/member.php...o&userid=29573 View this thread: http://www.excelforum.com/showthread...hreadid=493150 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
<my code
What code? -- Kind regards, Niek Otten "tkemo569" wrote in message ... I can't seem to get my code to work. All i need to do is determine if a cell has a Name in it or if it is blank. Could i get some help please. Thanks -- tkemo569 ------------------------------------------------------------------------ tkemo569's Profile: http://www.excelforum.com/member.php...o&userid=29573 View this thread: http://www.excelforum.com/showthread...hreadid=493150 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find First Non blank cell than find column header and return that value | Excel Worksheet Functions | |||
Despite data existing in Excel 2002 spreadsheet Find doesn't find | Excel Discussion (Misc queries) | |||
find and delete duplicate entries in two columns or find and prin. | Excel Programming | |||
find and delete text, find a 10-digit number and put it in a textbox | Excel Programming | |||
backwards find function to find character in a string of text | Excel Programming |