Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default if activecell is value

what is the macro to identify if the activecell contains value
and what is the macro to identify if cell XX contains value

thank you
rozent
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default if activecell is value

If Activecell.Value = "ABC" Then...
but if you really mean CONTAINS, as opposed to EQUALS:
If Instr(Activecell.Value,"ABC")0 Then...

FOr 2nd part, replace "ActiveCell" with something like Range("E6"):

If Range("E6").Value = "ABC" Then...

Bob Umlas
Excel MVP

"?????" wrote in message
...
what is the macro to identify if the activecell contains value
and what is the macro to identify if cell XX contains value

thank you
rozent



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default if activecell is value

i mean contains value like 900 , 1 , 5.5....
not textualy cell or formula

not equals to...

what is the meaning of "ABC"
is it an example or some constant or what?

rozent

"Bob Umlas" wrote:

If Activecell.Value = "ABC" Then...
but if you really mean CONTAINS, as opposed to EQUALS:
If Instr(Activecell.Value,"ABC")0 Then...

FOr 2nd part, replace "ActiveCell" with something like Range("E6"):

If Range("E6").Value = "ABC" Then...

Bob Umlas
Excel MVP

"?????" wrote in message
...
what is the macro to identify if the activecell contains value
and what is the macro to identify if cell XX contains value

thank you
rozent




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default if activecell is value

if application.isnumber(activecell.value) then



if application.isNumber(Range("B9").value) then


--
Regards,
Tom Ogilvy



"רוז×*ט" wrote:

i mean contains value like 900 , 1 , 5.5....
not textualy cell or formula

not equals to...

what is the meaning of "ABC"
is it an example or some constant or what?

rozent

"Bob Umlas" wrote:

If Activecell.Value = "ABC" Then...
but if you really mean CONTAINS, as opposed to EQUALS:
If Instr(Activecell.Value,"ABC")0 Then...

FOr 2nd part, replace "ActiveCell" with something like Range("E6"):

If Range("E6").Value = "ABC" Then...

Bob Umlas
Excel MVP

"?????" wrote in message
...
what is the macro to identify if the activecell contains value
and what is the macro to identify if cell XX contains value

thank you
rozent




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default if activecell is value

Dim r as range
Set r=ActiveCell
if r.Value = 1 then...


Set r=Range("Z100")
if r.Value=1 then...
--
Gary''s Student


"רוז×*ט" wrote:

what is the macro to identify if the activecell contains value
and what is the macro to identify if cell XX contains value

thank you
rozent



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Name the ActiveCell Vikxcel Excel Programming 1 October 19th 05 01:37 AM
activecell slikity Excel Programming 7 December 13th 04 11:59 AM
Activecell value Shamsul Islam Excel Programming 5 April 30th 04 10:10 PM
how to set activecell? ljb[_2_] Excel Programming 2 November 18th 03 04:49 PM


All times are GMT +1. The time now is 04:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"