Hello,
I've constructed a code in VBA where I SELECT all orders from the last month and then I can do some analytics with this data. But I also want to fetch how these orders have been invoiced. What I've done is that I create a column in Excel where all the orderid's are that I want invoice data about. I can copy this column into my SQL-code manually with no problem but I want to make it automatic. What I'm trying to do is somthing like:
First i declare
(because I want the data I save in this variable to be saved in between subs.)
But I get the compile error: Object required and the problem is rngOrderId in my sqlStr. How can I solve this problem?
Bookmarks