Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying an array variable to a sheet

Hi all,

I need some help with my first steps into Excel programming (Excel 2000,
on windows XP)

I have a vector defined as

Dim zret() As Variant

' which later is redefined

ReDim zret(n,1)

' n can get any value and is to be determined elsewhere
' after zret is filled with processed data I would like to place it on
the active sheet.
' i do not want to use activesheet.range(" "), since it will require a
predefined location and length.

I have tried
r=2
c=4
'ActiveSheet.Range(Cells(r ,c ), Cells(r + n - 1, c + 1)) = zret

' but I'm getting an error.

Also, is there a way to name a range dynamically, with a number of
columns and or rows determined in the subroutine?


Thank you,
MR,
NYC







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use a variable as a reference to an array in INDEX Steve Haack Excel Worksheet Functions 6 July 29th 08 06:16 PM
Using COUNTA for a variable array Schannah Excel Worksheet Functions 5 July 22nd 08 05:02 PM
Can I make array position A(12) into a variable A(12*n) ? Paul Excel Worksheet Functions 1 October 9th 06 10:37 PM
use a variable array in a formula JPderose Excel Discussion (Misc queries) 1 October 20th 05 06:24 AM
variable in a link where the variable is the name of the sheet darrelly Excel Worksheet Functions 1 October 7th 05 08:24 AM


All times are GMT +1. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"