K
keyur
hi
i got 2 problems
i want to add a Vloopup formula joined with IF statement
in the macro that should return " " if TRUE. i want to
have a space in between quotation marks (Reason. this file
is linked to an acess table where it will show #NUM if no
space)which gives an error"Expected:End of Statement". any
ideas how can i include this??
Second
this is kind of a continuation of my previous yesterday's
post "Help writing a macro". Here's what Trevor offered
(Thanks). i manipulated since i wanted column heading in
C1 and the formula starts from c2. For some reason it
gives me Description in C1 and rest all cells in C are
empty. any ideas?? any help is appreciated.
Columns("C").ClearContents
Range("C1").Formula = "Description"
Range("C2").Formula = "=IF(OR(ISNA(VLOOKUP(A2,'Parts
List'!$B$2:$D$6000,2,0)),_ISBLANK(VLOOKUP(A2,'Parts List'!
$B$2:$D$6000,2,0))),(""),VLOOKUP(A2,'Parts List'!
$B$2:$D$6000,2,0))"
Range("C2:C" & _
Application.WorksheetFunction.Max _
(Range("A" & Rows.Count).End(xlUp).Row, _
Range("B" & Rows.Count).End(xlUp).Row)).FillDown
On Error Resume Next
Selection.SpecialCells
(xlCellTypeBlanks).EntireRow.Delete
ActiveSheet.UsedRange
End Sub
i got 2 problems
i want to add a Vloopup formula joined with IF statement
in the macro that should return " " if TRUE. i want to
have a space in between quotation marks (Reason. this file
is linked to an acess table where it will show #NUM if no
space)which gives an error"Expected:End of Statement". any
ideas how can i include this??
Second
this is kind of a continuation of my previous yesterday's
post "Help writing a macro". Here's what Trevor offered
(Thanks). i manipulated since i wanted column heading in
C1 and the formula starts from c2. For some reason it
gives me Description in C1 and rest all cells in C are
empty. any ideas?? any help is appreciated.
Columns("C").ClearContents
Range("C1").Formula = "Description"
Range("C2").Formula = "=IF(OR(ISNA(VLOOKUP(A2,'Parts
List'!$B$2:$D$6000,2,0)),_ISBLANK(VLOOKUP(A2,'Parts List'!
$B$2:$D$6000,2,0))),(""),VLOOKUP(A2,'Parts List'!
$B$2:$D$6000,2,0))"
Range("C2:C" & _
Application.WorksheetFunction.Max _
(Range("A" & Rows.Count).End(xlUp).Row, _
Range("B" & Rows.Count).End(xlUp).Row)).FillDown
On Error Resume Next
Selection.SpecialCells
(xlCellTypeBlanks).EntireRow.Delete
ActiveSheet.UsedRange
End Sub