Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default get Excel array values in Visual Studio VB

This should be easy but I have researched eight VB books without solving it.
How can I get the array values which are in a named (defined) Excel worksheet
into an array in Visual Studio VB 2005 (not VBA). I have tried

s = wSheet.Range("foo")

where "foo" is defined in the workbook as a two dimension array in F15:G15
and s is dimensioned as s(2) in VB. I am also unable to get the values into
s when I substitute "F15:G15 for "foo" in the code.

Thanks very, very much.

Nol Rietman
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default get Excel array values in Visual Studio VB

Don't DIM "s" as an array, it has to be a variant.
--
Regards,
Luc.

"Festina Lente"


"Noel Rietman" wrote:

This should be easy but I have researched eight VB books without solving it.
How can I get the array values which are in a named (defined) Excel worksheet
into an array in Visual Studio VB 2005 (not VBA). I have tried

s = wSheet.Range("foo")

where "foo" is defined in the workbook as a two dimension array in F15:G15
and s is dimensioned as s(2) in VB. I am also unable to get the values into
s when I substitute "F15:G15 for "foo" in the code.

Thanks very, very much.

Nol Rietman

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 set up a 6 day work week in Excel? rrichter Excel Worksheet Functions 9 August 13th 06 07:05 PM
Excel does not display entered values correctly TSL1050 Excel Discussion (Misc queries) 2 January 17th 06 04:00 AM
return multiple corresponding values in excel Chiller Excel Worksheet Functions 5 January 12th 06 05:43 PM
Excel array formulas Les Gordon Excel Discussion (Misc queries) 1 September 3rd 05 04:12 PM
Missing values in Excel Line Chart mw55309 Charts and Charting in Excel 1 January 19th 05 12:10 PM


All times are GMT +1. The time now is 02:51 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"