LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default writing array into excel sheet

Berrie,

Here is a VB example:

Function myfunc() As Variant
Dim arr(9, 9) As String, i As Long, j As Long

For i = 0 To 9
For j = 0 To 9
arr(i, j) = CStr(i & ", " & j)
Next
Next

myfunc = arr
End Function

Select 10 by 10 cells:
=myfunc()
CTRL+SHIFT+ENTER

Rob

"berrie" wrote in message
...
Does anyone know, how to write an array into a sheet with c++ (vb). To let

excel know that the range is an array, you have to use the ctrl+shift+enter
combination. How can this be done with c++ (vb).


 
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
Allow only writing in a protected Sheet Piruzzi Setting up and Configuration of Excel 1 January 5th 09 11:59 PM
Writing formulas between sheet Dave Excel Discussion (Misc queries) 4 February 22nd 07 05:50 PM
writing macros in excel sheet Richard Buttrey Excel Worksheet Functions 7 May 10th 06 01:04 AM
Writing Array Formulas in VBA Ed Excel Programming 4 January 10th 04 07:27 PM
VBA: Writing an array function (like MMult) fxmolden Excel Programming 4 November 13th 03 07:45 PM


All times are GMT +1. The time now is 07:42 PM.

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

About Us

"It's about Microsoft Excel"