Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88075

VBA returns error why trying to use 'lookup' in formula

$
0
0

When I try to run this line of code, I recieve VBA error 1004.

Range("K38").Select
ActiveCell.FormulaR1C1 = "=IFERROR(LOOKUP(2, 1/(COUNTIF($K$36:$K37, WIP_Table[Resource Name])=0), WIP_Table[Resource Name]), """")"

The formula for the cell works perfectly when I input into excel manually, so I'm not sure why VBA stops?? Any help would really be appreciated, thanks.


Viewing all articles
Browse latest Browse all 88075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>