Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Office 2003 on Windows XP.
A one-dimensional array (i.e. the array has one column of data in multiple rows) is loaded from a custom function. This array holds a list of all the file names in a folder that the user selects. When I try to use the "Resize" method to shotgun the data into a sheet I get a "subscript out of range" error. The error appears to be in the second "UBound" clause in the following line: Sheets(msSheetName).[A1].Resize(UBound(mvaFileName, 1), _ UBound(mvaFileName, 2)).Value = mvaFileName The array "mvaFileName" is dimensioned at module level as a variant. The "resize" method is the fastest and most convenient method I know to blast data into a sheet from an array. How can I get this to function? Thanks in advance for your assistance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why Copy/Paste fails using Offset & Resize of myRange? | Excel Discussion (Misc queries) | |||
Paste method fails in VBA | Excel Programming | |||
Workbooks.open method fails | Excel Programming | |||
Copy method fails in IIS | Excel Programming | |||
resize method | Excel Programming |