Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range.Resize from Visual Basic in Windows to Excel
I have a visual basic program in Windows that puts calculated data in an
array INTO an EXCEL spreedsheet. I am using late binding. Note I am not Writing a macro inside EXCEL, but in a Visual Basic program outside of EXCEL. The array is excelhold(122) I tried to use the statement oSheet.Range("A2").Resize(122,1).Value=excelhold The problem in put the value of excelhold(1) into all the cells in column A in the spreadsheet instead of putting all the values of excelhold. If I use the statement oSheet.Range("A2").Resize(1,122).Value=excelhold It puts all the values of excelhold in row 2 Resize(122) and Resize (122,0) and skipping Resize all together does not work either. Any ideas? Thanks -- Mark Mesarch School of Natural Resources University of Nebraska-Lincoln |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If Range not equal to zero in Visual Basic If/Then statement | Excel Discussion (Misc queries) | |||
changing a formula range in visual basic | Excel Programming | |||
Range Reference in Visual Basic | Excel Programming | |||
Visual Basic Range variable | Excel Programming | |||
Visual basic to step through range and store a value based on text attribute value. | Excel Programming |