LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Making sure that cells within a row in a database aren't blank

Good afternoon, weekend Excelers!

I currently have a database in cells B14:L19

I'm trying to prevent users from having blank rows in the database by using
the Worksheet_Change event to check that if a change is made to any cells,
that this doesn't result in all eleven cells in the row being blank.

As you can see from the code below, I've tried lots of different ways to
(for example if I'm in row 16) to check that B16:L16 aren't blank, but
without much success. I get lots of "invalid qualifier" messages.

Can anyone advise me of the best way to go about this?

Thanks in advance

Pete Rooney


With Target

'---------------------------------------------------------------------------------
If .Column = 2 Then
If .Column <= 12 Then
MsgBox (.Column & " " & .Row)

If Application.WorksheetFunction.isblank(Cells(Target .Row, 2)) Then
' If "C" & Target.Row.Value = 0 Then
' If "D" & Target.Row.Value = 0 Then
' If "E" & Target.Row.Value = 0 Then
' If "F" & Target.Row.Value = 0 Then
' If "G" & Target.Row.Value = 0 Then
' If "H" & Target.Row.Value = 0 Then
' If "I" & Target.Row.Value = 0 Then
' If "J" & Target.Row.Value = 0 Then
' If "K" & Target.Row.Value = 0 Then
' If "L" & Target.Row.Value = 0 Then
MsgBox ("You CAN'T have blank rows in the
database!")
' Range("F" & Target.Row).Formula = "Blank
Eliminator"
' End If
' End If
' End If
' End If
' End If
' End If
' End If
' End If
' End If
' End If
End If
End If
End If

'---------------------------------------------------------------------------------
If .Column = 11 Then
DefineDatabase
If .Row = FirstDBRow Then
If .Row <= FinalDBRow Then

'---------------------------------------------------------------------------
If .Formula = "Core Infrastructure" Then

 
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
Making Blank Cells Workbook Excel Worksheet Functions 4 February 4th 09 01:25 PM
Making a Database Darlin-Nikki Excel Discussion (Misc queries) 2 February 12th 08 04:39 PM
Blank cells in named range- how to ignore them when making my graph? Help plz! KR Excel Discussion (Misc queries) 0 August 24th 05 02:35 PM
Making Blank Cells Really Blank (Zen Koan) Ralph Excel Worksheet Functions 2 April 11th 05 12:07 AM
making graphs ignore "blank " cells Guillermo Excel Discussion (Misc queries) 4 February 22nd 05 09:26 PM


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