migrate a contact macro

G

Guest

I have a contact macro that opens new appointment with contact name in the
subject field, address in the location field and contact info in the memo
field. I just loaded Business Contact Manager and the macro won't work for a
business contact. Someone else wrote the macro for me.

Can anyone help give me info on what needs to change in this macro?

Many thanks
 
L

Leonid S. Knyshov

DeanMay said:
I have a contact macro that opens new appointment with contact name in the
subject field, address in the location field and contact info in the memo
field. I just loaded Business Contact Manager and the macro won't work for
a
business contact. Someone else wrote the macro for me.

Can anyone help give me info on what needs to change in this macro?

Difficult to say without seeing the object names used in the macro and
especially without seeing your error messages.

BCM has its own SDK for macro writers. From programmer's perspective, BCM
2007 is a lot more friendly. You can discuss macro code in
microsoft.public.office.developer.outlook.vba and you should get qualified
answers. We can try here, but more likely you'll need to get someone to
rewrite this code. Basically, you can address BCM objects as both standard
objects and BCM objects. BCM is its own Information Service, so if your
macro is specific to an Information Service, such as "Personal Folders" or
"Mailbox - Dean May" it will break.
--
Leonid S. Knyshov, CEO
Crashproof Solutions, LLC - http://www.crashproofsolutions.com
MCP Exchange 2003/Small Business Server 2003
Microsoft Small Business Specialist Partner
See the tips and tricks section on my website for video tutorials on BCM
Send a smile to Microsoft (Office 2007 Beta feedback tool)!
http://tinyurl.com/m4omy
 
L

Luther

You'll need to make two changes to the macro.

1) Instead of the default Mapi store (i.e. the Outlook pst), Bcm data
is in the "Business Contact Manager" store.
2) Business Contacts are in the "Business Contacts" folder.

e.g.
set oOL = CreateObject("Outlook.Application")
set oNS = oOL.GetNamespace("MAPI")
set oBCMFolder = oNS.Folders("Business Contact Manager")
set oBCMContactsFolder = oBCMFolder.Folders("Business Contacts")
 

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