[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


how to use CallByName with a property that is an object

Posted on 2004-10-29
Medium Priority
Last Modified: 2010-05-02

I have been using Callbyname for properties of an object that are primative data types, but it does not seem to work with properties that are objects.  Any suggestions?

E.g. works:

Callbyname(obj, "number", vbGet)

does not work:

Callbyname(obj, "obj2", vbGet)
Question by:rmundkowsky
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

rmundkowsky earned 0 total points
ID: 12449761
Never mind,  I just got it figured out.

 var = Callbyname(obj, "obj2", vbGet)    'is wrong


set var = Callbyname(obj, "obj2", vbGet)   'is right

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question