I need to capture just the criteria within the forumla below to use as a variable. In turn I want to put that variable within another =DCOUNT formula via VB. Any suggestions on how to accomplish this if it is even possible?


=DCOUNT(main_db!$B$8:$B$15,"twentythree",main_db!A1:A2)