Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Message - Selection contains empty cells

Hi,
I'm looking for a macro which will pop up a message confirming me that
my selection contains cells with no formulas & no constants i.e are
completely blank.
Thxs beforehand

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Message - Selection contains empty cells

One way -

Sub test()
Dim x As Long
x = Application.CountA(Selection)

MsgBox "Non-blank cells : " & x
End Sub

Regards,
Peter T

"al007" wrote in message
ups.com...
Hi,
I'm looking for a macro which will pop up a message confirming me that
my selection contains cells with no formulas & no constants i.e are
completely blank.
Thxs beforehand



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Message - Selection contains empty cells

thxs


Peter T wrote:
One way -

Sub test()
Dim x As Long
x = Application.CountA(Selection)

MsgBox "Non-blank cells : " & x
End Sub

Regards,
Peter T

"al007" wrote in message
ups.com...
Hi,
I'm looking for a macro which will pop up a message confirming me that
my selection contains cells with no formulas & no constants i.e are
completely blank.
Thxs beforehand


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
finding empty selection Chimanrao Excel Programming 6 November 11th 05 03:25 AM
Test for an empty selection Edward Ulle Excel Programming 4 September 8th 05 02:54 PM
macro to colour empty cells (cells not recognized as empty) Gerben Excel Programming 5 June 30th 05 03:29 PM
List Selection to First Empty Row depuyus Excel Programming 2 July 30th 04 09:48 PM
Selection of non-empty cells Adrian[_7_] Excel Programming 6 July 22nd 04 01:06 PM


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

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"