Greetings Excel Freinds
Excel 2003 - Windows XP
No Formal VBA Training
Learned with Macro Recorder and Mr. Excel.com
After looking at several posts for xlCellTypeBlanks most seem to be about deleting Rows.
I'm wanting to use xlCellTypeBlanks to verify data integrity
Searching a Range for Blanks, if there is a Blank, a Record is either missing or incomplete.
I want to get the Date in Column A of each ROW that has a Blank and Run the Procedure to pull that dates records.
Test Data, Range("C200:F232"), has 25 Blank Cells, on 15 Different Rows
Three Issues I'm having:
rIncompleteRecords.Rows.Count is returning 1 not 15
and
For Each Row (with Blanks) How do I get
Range("A" & rIncompleteRecords.Row).Value?
I need each row not each Cell as the called Procedure will get the data for all cells in that Row
Although it wouldn't hurt to know how to do the For Each Cell process as well.
and (Two and a Half) Issues
No Blanks, Data are OK exit without error. (I have find this issue and do not "need" it, Just thought it would be nice to have all of this in one Place for Future reference).
Code Snipet:
Thank You in advance.
Excel 2003 - Windows XP
No Formal VBA Training
Learned with Macro Recorder and Mr. Excel.com
After looking at several posts for xlCellTypeBlanks most seem to be about deleting Rows.
I'm wanting to use xlCellTypeBlanks to verify data integrity
Searching a Range for Blanks, if there is a Blank, a Record is either missing or incomplete.
I want to get the Date in Column A of each ROW that has a Blank and Run the Procedure to pull that dates records.
Test Data, Range("C200:F232"), has 25 Blank Cells, on 15 Different Rows
Three Issues I'm having:
rIncompleteRecords.Rows.Count is returning 1 not 15
and
For Each Row (with Blanks) How do I get
Range("A" & rIncompleteRecords.Row).Value?
I need each row not each Cell as the called Procedure will get the data for all cells in that Row
Although it wouldn't hurt to know how to do the For Each Cell process as well.
and (Two and a Half) Issues
No Blanks, Data are OK exit without error. (I have find this issue and do not "need" it, Just thought it would be nice to have all of this in one Place for Future reference).
Code Snipet:
Code:
Sub FindMissingRecords()
Dim rIncompleteRecords As Range
Dim i As Integer
Set rIncompleteRecords = _
Sheets("Fiscal Data").Range("C200:F232").SpecialCells(xlCellTypeBlanks)
MsgBox rIncompleteRecords.Rows.Count, vbOKOnly, "Number of Different Rows"
'Only returning 1
For i = 1 To rIncompleteRecords.Rows.Count
'Need .Value (a Date) from Column "A" of each missing or Incomplete Row.
'Get Missing Records Here
'*** Procedure Working if Date is provided***
'Need to change ActiveCell.Value to
Range("A" & rIncompleteRecords.Row).Value ***HELP HERE ***
GetSalesDate (ActiveCell.Value)
Next i
End Sub
Thank You in advance.