Hi!

I am working with excel sheets and want to use UsedRange to get range but compiler gives an error of missing assembly or directive at UsedRange. Please help me out. What should I do?

range1 = worksheet2.UsedRange;

UsedRange is a DLL that you are referencing to get the range is it..?
in that case, just use worksheet2.UsedRange instead of aliasing it...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.