Outlook 2007 Contact Form Code Not Working

Status
Not open for further replies.

LMS

Senior Member
Outlook version
Email Account
Exchange Server
For many years through this group and others, I have a code in the form for my contact and in the contact form, when I click on the area, it runs the code. But just recently, it now says that it cannot find the specific object which has been working for ever until now.

The code creates a calendar event for the contact I do it from.

Is there a way to fix this right away?

Thanks very much!!
 
I have not heard back yet, and I have to fix this. Can you help on this?
 
I have not heard back yet, and I have to fix this. Can you help on this?
 
I have not heard back yet, and I have to fix this. Can you help on this?
 
I have not heard back yet, and I have to fix this. Can you help on this?
 
It's summer - everyone is on vacation. :)

What is the code that is failing? What is the exact error message? It's possible a recent update broke it - do you know if any were installed right before it stopped working?
 
Nice to hear from you again!!!! You are the best!!! How can I send you the full code as you showed me how to add to it re the fields to show up in the calendar note area, and it is a big code. This was creating the calendar event through the contact, and when I click on the button that has the name of the code, it was running perfect.

And the error is: "it cannot find the specific object"

So how can I send you the full code so you can see it?

Thanks so much.
 
Paste it in notepad and use the upload file button to add it here would be the easiest.

You didn't edit any of the code? The error means it can't find an object it needs... but I have no idea what object it might be.
 
Got it. As a reminder, you showed me how to put the words from the contact fields in the calendar note area. So attached is the code and please let me know if there is something to fix even though it was working perfecting for years!!

Thanks so much.
 

Attachments

  • Contact Form Code Re Calendar Event.txt
    21.9 KB · Views: 536
It didn't give you a clue as to what the specified object was ?
 
It did not...is just says : "it cannot find the specific object"

but other codes in the contact form still work as well....
 
Nothing jumps out at me - so the easiest way to identify the object is to comment out all of the IF lines but one and test then uncomment one more and test. You could probably uncomment like 5 at a time - if it works, then you know its not those 5., if it fails, you only have 5 to test.
 
I appreciate your thoughts....what do you mean by the IF lines? and when you tell me what those are...do I just delete them from the code and see if the code is working?
 
Oh, and you can try stepping though the macro and see where it quits - that might help identify the object.
 
I don't understand what you said to do re stepping through the macro and see where it quits
 
I appreciate your thoughts....what do you mean by the IF lines? and when you tell me what those are...do I just delete them from the code and see if the code is working?
That would be the whole passel of these lines:

if item.getinspector.modifiedformpages("General").controls("FullName").text <> "" then txtFullName = "Full Name" & ": " & vbcrlf & item.getinspector.modifiedformpages("General").controls("FullName").text & vbcrlf

if item.getinspector.modifiedformpages("General").controls("TextBox10").text <> "" then txtNickname = "Nickname" & ": " & vbcrlf & item.getinspector.modifiedformpages("General").controls("TextBox10").text & vbcrlf


add a ' to the front of all

You can select them in the editor and use the Edit toolbar's Comment block button to do all of them at once
comment-block.png

[DOUBLEPOST=1438186921][/DOUBLEPOST]
I don't understand what you said to do re stepping through the macro and see where it quits
Show the debug toolbar or use F8 key to walk the macro line by line.
step-into.png
 
In 2007 outlook it does not show the Edit toolbar's Comment block button to do all of them at once...where is that?
 
In 2007 outlook it does not show the Edit toolbar's Comment block button to do all of them at once...where is that?
Right click on the toolbar area or look on the View menu for it.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L Outlook 2007 Macro to Contact From a Field Using Outlook 3
C in outlook 2007-Contact Group-One name have 3 mail id-its possible? Using Outlook 3
Z Outlook 2007, clicking email addresses fails to open Contact Using Outlook 0
L Outlook 2007 Macro Save Contact Using Outlook 10
L Outlook 2007 Open Folder From a Contact Using Outlook 22
L Outlook 2007 Contact Form Webpage Using Outlook 23
L Outlook 2007 Macro Open Contact Folder Using Outlook 7
Z outlook 2007 - opening a contact from the search results doesn't use the custom form Using Outlook 10
L Outlook 2007 Contact in a Task Using Outlook 15
L Outlook 2007 Macro to Run a Script From a Contact Form Using Outlook 41
L Outlook 2007 Macro to Add Text to a Contact Field Using Outlook 10
L Outlook 2007 Contact Form - Note Fields Using Outlook 25
M suddenly cannot set outlook 2007 contact reminders Using Outlook 2
R Ingest contact PST from exchange 2007 thru client's Outlook via PRF Exchange Server Administration 2
L Opening up Contact from an Email - Outlook 2007 Using Outlook 15
L Outlook 2007 Contact Review Using Outlook 4
C Outlook 2007 Contact Card opens in margin of screen where I can't see it Using Outlook 3
E Double clicking on from email address does no longer open corresponding contact in Outlook 2007 Using Outlook 7
S Upgrade Outlook 2007 to outlook with Buisiness Contact m|Manger BCM (Business Contact Manager) 2
R Outlook 2007 w/ Business Contact Manager compatible w/ Cardscan? BCM (Business Contact Manager) 1
M Business contact manager 2003 on outlook 2007 BCM (Business Contact Manager) 1
J how to add Business Contact Manager to existing Outlook 2007? BCM (Business Contact Manager) 2
M How do I install Outlook 2007 Business Contact Manager on Win7x64 BCM (Business Contact Manager) 1
M 2007 Outlook - no Business Contact Manager BCM (Business Contact Manager) 7
P Setup failed to install Business Contact Manager for Outlook 2007 BCM (Business Contact Manager) 2
C Business Contact Manager and Outlook 2007 "not enough free memory BCM (Business Contact Manager) 5
L outlook 2007 attach multiple journals to same contact Outlook VBA and Custom Forms 2
K Accessing contact's custom properties in a Outlook 2007 form region Outlook VBA and Custom Forms 1
D Outlook 2007 Recovering E-Mails Using Outlook 0
W Transfer Outlook 2016 autocomplete file to Outlook 2007 Using Outlook 1
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
S Outlook 2007 - Automatic purge fail Using Outlook 0
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
S Verwendung von Outlook 2007 Using Outlook 0
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
S outlook 2007 calendar search Using Outlook 6
B Migrate Outlook 2007 to Office 365 Using Outlook 3
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
R Outlook 2007 only loads some appointments Using Outlook 0
C Move Outlook 2007 to new PC with Outlook 365 Using Outlook 3
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
B Server errors Outlook 2007 Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1

Similar threads

Back
Top