ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   declaring a certain value (https://www.excelbanter.com/excel-programming/333020-declaring-certain-value.html)

thephoenix12[_4_]

declaring a certain value
 

Hi,

I'm trying to add to an if statement, saying that if a cell is equal to
a certain value, then to ignore it. I'm new to visual basic and I just
dont know how to declare that value. I have in bold what I have tried
to do.

If ActiveCell.Characters.Count 13 Or Not only_text(ActiveCell) *Or
ActiveCell.Value("RM UCONN SFA") * Then

Thanks for the help,

-Steve


--
thephoenix12
------------------------------------------------------------------------
thephoenix12's Profile: http://www.excelforum.com/member.php...o&userid=24336
View this thread: http://www.excelforum.com/showthread...hreadid=382772


Tom Ogilvy

declaring a certain value
 
Or Ucase(ActiveCell.Value) = "RM UCONN SFA"

--
Regards,
Tom Ogilvy


"thephoenix12"
wrote in message
...

Hi,

I'm trying to add to an if statement, saying that if a cell is equal to
a certain value, then to ignore it. I'm new to visual basic and I just
dont know how to declare that value. I have in bold what I have tried
to do.

If ActiveCell.Characters.Count 13 Or Not only_text(ActiveCell) *Or
ActiveCell.Value("RM UCONN SFA") * Then

Thanks for the help,

-Steve


--
thephoenix12
------------------------------------------------------------------------
thephoenix12's Profile:

http://www.excelforum.com/member.php...o&userid=24336
View this thread: http://www.excelforum.com/showthread...hreadid=382772




anilsolipuram[_116_]

declaring a certain value
 

If ActiveCell.Characters.Count 13 Or Not only_text(ActiveCell) O
ActiveCell.Value="RM UCONN SFA" The

--
anilsolipura
-----------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...fo&userid=1627
View this thread: http://www.excelforum.com/showthread.php?threadid=38277



All times are GMT +1. The time now is 07:20 PM.

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