training support pack
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Training Support Pack & OOP

Training Support Pack & OOP

resolvedResolved · Medium Priority · Version 2003

replyReply Thu 13 Nov 2008, 15:24Delegate Craig said...

Craig has attended:
Excel VBA Advanced course

Training Support Pack & OOP

Hi, just a couple of quick questions...

1) It was mentioned that our Training Support Packs were incomplete and we could download a full version - is this ready yet and could a link to it be posted please?

2) Can a Class be set up with optional properties, allowing you to create an object with these optional properties unassigned? If so do these properties then return some sort of null value?

Many thanks

Craig

For upcoming training course dates see: Pricing & availability

replyReply Fri 14 Nov 2008, 10:27Delegate Craig said...

RE: Training Support Pack & OOP

Slight rewording of my second question...

I would like to create a class and populate a collection of objects as instances of this class from a database as we did on the course.

However some of the fields returned by the query I am using contain NULLS so I was wondering how this would be dealt with by VBA? Can I still assign these fields to a property of the class? When I access them will these properties then contain NULL or the empty string "" or does this cause an error? Or as I was thinking in my first post, can I set a property as optional and it could return EMTPY when I try to access them?

Hope this is a clearer explanation of what I would like to do.

Many thanks

Craig

 

Please browse our web site to find out more about
excel classes and other Microsoft training courses.

Excel tip:

Display developer tab - Excel 2010

a. In Excel, click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the box next to Developer in the list of tabs on the right hand side of the dialog box. When ticked the Developer tab will be visible.
e. Click OK to apply your changes

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard