T
The Wonder Thing
O.k. I've got another question already, hopefully it isn't as silly as my last one which I solved 30 seconds after posting
Anyways, what I've got is a function that shows only the records I haven't found a price for yet by hiding all the records that I do have a price for
Sub HideFinishedEntries(
If ActiveSheet.UsedRange.Rows.Count Like "??" Then myDigetCount =
If ActiveSheet.UsedRange.Rows.Count Like "???" Then myDigetCount =
If ActiveSheet.UsedRange.Rows.Count Like "????" Then myDigetCount =
myListLength = Right(Str(ActiveSheet.UsedRange.Rows.Count), myDigetCount
For Each c In ActiveSheet.Range("C2:C" + myListLength
If c.Value <> "" And c.Offset([0], [8]).Value <> "" Or c.Offset([0], [-1]).Value <> "" Or c.Offset([0], [-2]).Value <> "" Then c.EntireRow.Hidden = Tru
Nex
End Su
Simple, right? I think so, but I'm confused because on 2 out of the 8 sheets it completes, meaning it does hide all the appropriate entries, but gives me a "Type mismatch error" before ending, and the debugger highlights that massive "IF" line. I don't see anything especially different about these sheets. They contain the same data types in the same columns, but the only thing I can think of is that there must be some kinda evil data on those sheets. Unfortunatly I don't have any idea what would do that, so I don't know what to look for. Any ideas?
Anyways, what I've got is a function that shows only the records I haven't found a price for yet by hiding all the records that I do have a price for
Sub HideFinishedEntries(
If ActiveSheet.UsedRange.Rows.Count Like "??" Then myDigetCount =
If ActiveSheet.UsedRange.Rows.Count Like "???" Then myDigetCount =
If ActiveSheet.UsedRange.Rows.Count Like "????" Then myDigetCount =
myListLength = Right(Str(ActiveSheet.UsedRange.Rows.Count), myDigetCount
For Each c In ActiveSheet.Range("C2:C" + myListLength
If c.Value <> "" And c.Offset([0], [8]).Value <> "" Or c.Offset([0], [-1]).Value <> "" Or c.Offset([0], [-2]).Value <> "" Then c.EntireRow.Hidden = Tru
Nex
End Su
Simple, right? I think so, but I'm confused because on 2 out of the 8 sheets it completes, meaning it does hide all the appropriate entries, but gives me a "Type mismatch error" before ending, and the debugger highlights that massive "IF" line. I don't see anything especially different about these sheets. They contain the same data types in the same columns, but the only thing I can think of is that there must be some kinda evil data on those sheets. Unfortunatly I don't have any idea what would do that, so I don't know what to look for. Any ideas?