List available methods for an object

craig.penny

Well-known Member
Joined
May 8, 2009
Messages
656
Hi all,

I have this bit of code:

Code:
Dim oExcel As Object: Set oExcel = CreateObject("Excel.Application")

Is there a way to see all of the available methods for "oExcel"?

:)Thank you!:)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Or use the Object Browser in the VBEditor (f2)
 
Upvote 0
Thanks Andrew and RoryA! I might have finally learned something about early vs. late binding...

You guys are the bees' knees/cats' pajamas :)
 
Upvote 0
I used

Code:
Dim oExcel As Excel.Application: Set oExcel = CreateObject("Excel.Application")

and intellisense worked perfectly. That one was easy to figure out how to bind early. I have a couple other variables that I don't know how to use this on.

Code:
Dim oFso As Object: Set oFso = CreateObject("Scripting.FileSystemObject")
Dim oFolder As Object: Set oFolder = oFso.getfolder("C:\Users\Craig.Penny\Desktop\ABC123")

How would I do these?

Instead of posting each specific question, could you recommend a way to learn to do this in general?

Thanks again!
 
Upvote 0
Craig

oFso would be declared as FileSystemObject and oFolder as Folder.

You'll need a reference to Windows Scripting Runtime.
 
Upvote 0
It didn't even occur to me that I would need to set any additional references but now it makes perfect sense.

Thanks Andrew and Norie!
 
Upvote 0

Forum statistics

Threads
1,216,131
Messages
6,129,066
Members
449,485
Latest member
greggy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top