ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   check contain value with macro (https://www.excelbanter.com/excel-programming/341184-check-contain-value-macro.html)

Nadia25

check contain value with macro
 

Is there a way to check if activeCell.Value contain this “12ab44”.
need that it equal a Boolean (true false)

ex:

if ActiveCell.Value = "12ab44" then
test1
end i

--
Nadia2
-----------------------------------------------------------------------
Nadia25's Profile: http://www.excelforum.com/member.php...fo&userid=2757
View this thread: http://www.excelforum.com/showthread.php?threadid=47099


Rowan[_9_]

check contain value with macro
 
Maybe

If ActiveCell.Value Like "*12ab44*" Then
test1
End If

hope this helps
Rowan

Nadia25 wrote:
Is there a way to check if activeCell.Value contain this “12ab44”. I
need that it equal a Boolean (true false)

ex:

if ActiveCell.Value = "12ab44" then
test1
end if




All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com