Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Partial Array into Excel Range

Status
Not open for further replies.

eAlchemist

Technical User
Aug 28, 2003
64
0
0
US

I know how to assign a whole array to a range in Excel. Is there a way to assign a contiguos range of values within an array into a range of cells? I know that I can do it with a loop, but I'm wondering if I can do it in one line.

Thanks,
Chris
 



Hi,

One line...
Code:
for i=0 to ubound(a):cells(i+1,"A").value = a(i):next

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
I know how to assign a whole array to a range in Excel.

How do you do that exactly? If you do a simple assignment you will end up with a 2 dimensional array. To put the same size of array back just reverse the assignment statement.

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top