Remove the parentheses.
holdings.Add h
Otherwise you are trying to add to the collection the value of the default property of your Holding
instance, and it doesn’t have a default property.
More Related Contents:
- VBA collection: list of keys
- Determining whether an object is a member of a collection in VBA
- How do I sort a collection?
- to make this code simpler
- VBA code takes long time to execute in excel
- How to create and write to a txt file using VBA
- Is it possible to pass parameters programmatically in a Microsoft Access update query?
- Can I iterate through all Outlook emails in a folder including sub-folders?
- What is the lifetime of a global variable in excel vba?
- How to check for empty array in vba macro [duplicate]
- Integer Vs Long Confusion
- VBA Shell and Wait with Exit Code
- Insert line break in wrapped cell via code
- Change color of certain characters in a cell
- How to insert text into Outlook email editor using VBA
- Want VBA in excel to read very large CSV and create output file of a small subset of the CSV
- Can I Get the Source Range Of Excel Clipboard Data?
- Using visual basic to access subfolder in Inbox?
- VBA Macro crashes after 32000 rows
- Determine real cause of ODBC failure (error 3146) with ms-access?
- How to break a long string into multiple lines
- How to comment and uncomment blocks of code in the Office VBA Editor
- Read VBA macros (or vbaProject.bin) of an Excel file without opening it in MS Excel [closed]
- simple vba code gives me run time error 91 object variable or with block not set
- How can I automatically populate the VBA Editor with line numbers?
- VBA hash string
- Debugging an Outlook 2007 script fired by a rule
- Start VBA macro when editing a cell
- VBA Run-time error 438 appears when “paste” runs
- If Not function proceeds when value *is* the one specified