Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default again display "missing" when blank

hello,
for example, i have some data in the range b6:m19, some cells in this range
are blank, so i want them automatically display the word "missing" if there
is no data in
them, thank you.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default again display "missing" when blank

Hi,

Try this

Private Sub Worksheet_Activate()
Set myrange = Range("B6:M9")
For Each c In myrange
If IsEmpty(c) Then
c.Value = "Missing"
End If
Next
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
Set myrange = Range("B6:M9")
For Each c In myrange
If IsEmpty(c) Then
c.Value = "Missing"
End If
Next
End Sub


Right click the sheet tab, view code and paste it in

Mike

"nada" wrote:

hello,
for example, i have some data in the range b6:m19, some cells in this range
are blank, so i want them automatically display the word "missing" if there
is no data in
them, thank you.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 141
Default again display "missing" when blank

Hi,

Select your range, then:

'Edit' menu - 'Replace' (or just Ctrl+h)

Leave the 'Find what:' box blank and put "missing" in the 'Replace
with:' box.

Hit 'Replace All'.

Cheers,
Ivan.

On Apr 1, 8:59*pm, Mike H wrote:
Hi,

Try this

Private Sub Worksheet_Activate()
Set myrange = Range("B6:M9")
*For Each c In myrange
* * If IsEmpty(c) Then
* * * * c.Value = "Missing"
* * End If
Next
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
*Set myrange = Range("B6:M9")
*For Each c In myrange
* * If IsEmpty(c) Then
* * * * c.Value = "Missing"
* * End If
Next
End Sub

Right click the sheet tab, view code and paste it in

Mike



"nada" wrote:
hello,
for example, i have some data in the range b6:m19, some cells in this range
are blank, so i want them automatically display the word "missing" if there
is no data in
them, thank you.- Hide quoted text -


- Show quoted text -


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
display "Missing" when blank nada Excel Worksheet Functions 5 April 1st 08 11:06 AM
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
Signature missing when "send to" "mail recipient" Jim Tortorelli Excel Discussion (Misc queries) 2 September 21st 07 05:19 PM
Formatting: display blank when "O", 2 decimal when a number is d ED New Users to Excel 2 May 30th 07 09:12 PM
Scroll Bar missing "Control" tab in "Format Properties" dialog box Peter Rooney Excel Discussion (Misc queries) 5 August 24th 06 05:36 PM


All times are GMT +1. The time now is 05:50 PM.

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"