"Cannot find specified object."

  • Thread starter Bryan Dickerson
  • Start date
B

Bryan Dickerson

I'm getting the error in the subject in my custom form at the second of
these lines:

Set oMe = Item.GetInspector.ModifiedFormPages.Add("Ticket")
Set cbo = oMe.Controls("cboPartNum")

These are well into the VBA script. I know that I've seen this before, but
it's been a while. This is affecting a bunch of people, so any help I can
get will be greatly appreciated!

Thanx!
 
S

Sue Mosher [MVP-Outlook]

If this is a published custom form with a page named Ticket on it, the correct syntax would be:

Set oMe = Item.GetInspector.ModifiedFormPages("Ticket")

without the Add.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top