cell value syntax

  • Thread starter Thread starter miek
  • Start date Start date
M

miek

Im getting a type mismatch on the "evaluate" line code. can someone
help?

dim Col_value as string
dim l_lastrow as long

l_lastrow = 50
Col_value = "B"
b1:b50

Col_value 1: Col_value l_lastrow
l_ans = ActiveSheet.Evaluate(" COUNTIF(Col_value & 1: & Col_value &
l_lastrow, S_in)")
 
l_ans = ActiveSheet.Evaluate(" COUNTIF(" & Col_value & "1:" & Col_value &
l_lastrow & ", S_in)")

Not sure what S_in is but I am assuming a named range.
 

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

Back
Top