Conditional If/Else statement

P

Pistolade

What I need Is a bit of code that checks Table 338 Column 6/F/"LA
PRICE(NC)" for "#VALUE!", and if that text is found to run this;


Code
-------------------
ActiveSheet.ListObjects("Table338").Range.AutoFilter Field:=6, Criteria1:="=#VALUE!", Operator:=xlFilterValues
Range("A2", Range("A2").SpecialCells(xlCellTypeLastCell).Offset(0, -4)).Select
Selection.Copy
Windows("DeleteAlso.xlsx").Activate
Range("A3").End(xlDown).Offset(-1).Select
ActiveSheet.Paste

-------------------


Else;
End Sub

Thanks,
-Pistolade
 
P

Pistolade

Pistolade;1616599 said:
Bump.
Anyone figure this out yet?

Got it. i'm using a macro to unfilter the table, then count cells tha
contain the correct error. if the count is greater than one, it runs th
statement
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Saving a range for later reference 0
End(xlDown) Issue 1
Help linking true false in column to start macros 3
Macro Problem 1
Macro for Costing 0
Autofilter Array 0
issue copying data 2
Help with my macro 8

Top