Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default telling VB: if cells(a,b)="any number" then ...

Hi, this is easy for you, how to tell VB that if cells(a,b) is equal to any
number then bla bla bla.

Also I would like to know:
equal to string
equal to fractional numbers (3.453)

TIA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default telling VB: if cells(a,b)="any number" then ...

if cells(3,4).value = "XYZ" then ...
or
if cells(5,1).value = 3.453 then ...

Not sure what the problem is/was...?

"filo666" wrote in message
...
Hi, this is easy for you, how to tell VB that if cells(a,b) is equal to

any
number then bla bla bla.

Also I would like to know:
equal to string
equal to fractional numbers (3.453)

TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default telling VB: if cells(a,b)="any number" then ...

Check the various XL Isxxxx functions (search XL help for 'is
functions' -- w/o the quotes) and how VBA can use XL functions (search
XL VBA help for 'excel functions' -- again, without the quotes).

To test if a number is an integer or a real number, use either the \
operator or the mod operator.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi, this is easy for you, how to tell VB that if cells(a,b) is equal to any
number then bla bla bla.

Also I would like to know:
equal to string
equal to fractional numbers (3.453)

TIA


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
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered pmdoherty Excel Worksheet Functions 4 February 6th 09 11:23 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
how i convert "100" to "hundred"( number to text) in excel-2007 mohanraj Excel Worksheet Functions 1 May 11th 08 09:07 PM
Need to know the number of times "fam" appears in a list of cells medpay Excel Discussion (Misc queries) 6 October 4th 07 07:36 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM


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

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

About Us

"It's about Microsoft Excel"