Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
display "Missing" when blank | Excel Worksheet Functions | |||
How do I change the column heading in Excel to display "A" "B" "C | New Users to Excel | |||
Signature missing when "send to" "mail recipient" | Excel Discussion (Misc queries) | |||
Formatting: display blank when "O", 2 decimal when a number is d | New Users to Excel | |||
Scroll Bar missing "Control" tab in "Format Properties" dialog box | Excel Discussion (Misc queries) |