Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default checking celles by vb excel2000

if the 4 right celles from the pointer containe something
then ___ else ____
for example
if the activecell is h10 and the range h10:L10
containes something then do ___ else do ___

what is the macro

thank you
rozent
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default checking celles by vb excel2000

Hi Rozent,

Try something like:

'=============
Public Sub Tester001()

If Application.CountA(ActiveCell(1, 2).Resize(1, 4)) Then
MsgBox "Some content!"
Else
MsgBox "Empty!"
End If
End Sub
'<<=============

---
Regards,
Norman



"?????" wrote in message
...
if the 4 right celles from the pointer containe something
then ___ else ____
for example
if the activecell is h10 and the range h10:L10
containes something then do ___ else do ___

what is the macro

thank you
rozent



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default checking celles by vb excel2000

thank you your code helped me
rozent

"Norman Jones" wrote:

Hi Rozent,

Try something like:

'=============
Public Sub Tester001()

If Application.CountA(ActiveCell(1, 2).Resize(1, 4)) Then
MsgBox "Some content!"
Else
MsgBox "Empty!"
End If
End Sub
'<<=============

---
Regards,
Norman



"?????" wrote in message
...
if the 4 right celles from the pointer containe something
then ___ else ____
for example
if the activecell is h10 and the range h10:L10
containes something then do ___ else do ___

what is the macro

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
calculated celles according to more then 1 condition -yuval[_2_] Excel Worksheet Functions 5 February 6th 09 05:42 PM
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
compare celles and put value into Q sal21[_80_] Excel Programming 0 October 20th 05 04:13 PM
excel2000 רוזנט Excel Programming 2 October 16th 05 05:29 PM
Excel2000 Christina Feichter Excel Programming 0 January 26th 04 07:38 PM


All times are GMT +1. The time now is 01:09 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"