Link to home
Start Free TrialLog in
Avatar of lep1
lep1

asked on

VB.NET and Excel: Determine Cell Descriptor from Array Upper Bound

When you have a large array, how can you  quickly dump it to an Excel range?   Thus far, I am using something like:

Sheet.Range("A1", "BC2000").Value = xmatrix

Open in new window


But I need to dynamically determine the "BC2000" based on the upper bounds of the array.  How can this be done?
Avatar of Norie
Norie

Use Resize with the dimensions of the array to get a range that matches the size of the array.
SOLUTION
Avatar of lep1
lep1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Apologies, I assumed that you just needed a pointer because you only posted one line of code which I assumed was part of a larger block of code.
Avatar of lep1

ASKER

It would be more helpful for expert to provide all code necessary for solving an issue, and not to give pointers that cause users to continue to look for solutions.  I think users are not seeking coaching, rather explicit detailed solutions.