Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Collections and Keys for Ranges
Why is it when I use the following code, it's giving the "Name" property of
the item within the collection as an application-defined or object-defined error? I have it set as a new collection within the declaration statement. ---CODE--- cllEmpWrkCodes.Add wshLastWeekEmpsSummary.Cells(rngEmpWorkCodes.Row + 1, lngEmpWrkCode). _ Resize(sumdatLastWeekEmps.ColumnHeader.Rows.Count, 1), wshLastWeekEmpsSummary.Cells(4, lngEmpWrkCode).Text ---CODE--- The text being returned by the worksheet object down to the text property is returning the proper string value. I'm using the text as the ID value of the record (row) in most of these collections, though in this example, it's using it for summary purposes similar to crosstabs in Access, though it's actually part of a larger report. The data is actually housed in Access, and I'm using TransferSpreadsheet method within Access to update the data in Excel, which then I'm using both standard and class modules to further manipulate the data within Excel. -- Sincerely, Ronald R. Dodge, Jr. Master MOUS 2000 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
For Each and Collections | Excel Programming | |||
How to use Alt keys + symbol keys to invoke a macro? | Excel Programming | |||
Collections of Collections | Excel Programming | |||
Help with collections | Excel Programming | |||
Using Collections | Excel Programming |