![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi everyone,
Using Outlook 2003, I've designed my own Contacts page, but have created a problem. When I make a new contact, and link it to an existing contact in the bottom left-hand corner of my form, the links work, yet with existing forms, if I press the existing contacts name, I get "Cannot perform the requested operation. The command selected is not valid for this recipient". More annoying, the links work on some contacts and not others! Any ideas what I have done, and how to fix it? |
Ads |
#2
|
|||
|
|||
![]()
You mean existing items, not existing forms, right? Forms are the UI/code templates. They contain no data.
Did you recently move your .pst file? -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Stephen Morgan" wrote in message ... Hi everyone, Using Outlook 2003, I've designed my own Contacts page, but have created a problem. When I make a new contact, and link it to an existing contact in the bottom left-hand corner of my form, the links work, yet with existing forms, if I press the existing contacts name, I get "Cannot perform the requested operation. The command selected is not valid for this recipient". More annoying, the links work on some contacts and not others! Any ideas what I have done, and how to fix it? |
#3
|
|||
|
|||
![]()
Sue Mosher [MVP-Outlook] wrote:
You mean existing items, not existing forms, right? Forms are the UI/code templates. They contain no data. Did you recently move your .pst file? Yes, I do mean items, and no I have not moved my .pst file. I can manually check all the linked items, and re-create, but that will be a pain as I have a few hundred of them! Any further ideas please? |
#4
|
|||
|
|||
![]()
See if the VBA procedure at http://www.outlookcode.com/codedetail.aspx?id=1519 helps you reconnect the links. If you're new to Outlook VBA, see http://www.outlookcode.com/d/vbabasics.htm for basics.
If the linked contacts are in a folder other than your default Contacts folder, you will have to adapt the script to search in that specific folder or folders. The posted sample searches only the user's default Contacts folder. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Stephen Morgan" wrote in message ... Sue Mosher [MVP-Outlook] wrote: You mean existing items, not existing forms, right? Forms are the UI/code templates. They contain no data. Did you recently move your .pst file? Yes, I do mean items, and no I have not moved my .pst file. I can manually check all the linked items, and re-create, but that will be a pain as I have a few hundred of them! Any further ideas please? "Stephen Morgan" wrote in message ... Hi everyone, Using Outlook 2003, I've designed my own Contacts page, but have created a problem. When I make a new contact, and link it to an existing contact in the bottom left-hand corner of my form, the links work, yet with existing forms, if I press the existing contacts name, I get "Cannot perform the requested operation. The command selected is not valid for this recipient". More annoying, the links work on some contacts and not others! Any ideas what I have done, and how to fix it? |
#5
|
|||
|
|||
![]()
Sue Mosher [MVP-Outlook] wrote:
See if the VBA procedure at http://www.outlookcode.com/codedetail.aspx?id=1519 helps you reconnect the links. If you're new to Outlook VBA, see http://www.outlookcode.com/d/vbabasics.htm for basics. If the linked contacts are in a folder other than your default Contacts folder, you will have to adapt the script to search in that specific folder or folders. The posted sample searches only the user's default Contacts folder. Thanks for the "Hello World" test macro - it worked. There is a problem with the other macro, and am not sure how to debug. I get "Compile error: Sub or Function not defined" and it highlights the word "quote" in this line of your macro when I run it... "strFind = "[FullName] = " & Quote(objLink.Name)" Could/would you please look at your code, and fix, please??? |
#6
|
|||
|
|||
![]()
Sorry. I forgot to include the Quote() function, which is simply:
Function Quote(val) as String Quote = Chr(34) & CStr(val) & Chr(34) End Function -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Stephen Morgan" wrote in message ... Sue Mosher [MVP-Outlook] wrote: See if the VBA procedure at http://www.outlookcode.com/codedetail.aspx?id=1519 helps you reconnect the links. If you're new to Outlook VBA, see http://www.outlookcode.com/d/vbabasics.htm for basics. If the linked contacts are in a folder other than your default Contacts folder, you will have to adapt the script to search in that specific folder or folders. The posted sample searches only the user's default Contacts folder. Thanks for the "Hello World" test macro - it worked. There is a problem with the other macro, and am not sure how to debug. I get "Compile error: Sub or Function not defined" and it highlights the word "quote" in this line of your macro when I run it... "strFind = "[FullName] = " & Quote(objLink.Name)" Could/would you please look at your code, and fix, please??? |
#7
|
|||
|
|||
![]()
Sue Mosher [MVP-Outlook] wrote:
Sorry. I forgot to include the Quote() function, which is simply: Function Quote(val) as String Quote = Chr(34) & CStr(val) & Chr(34) End Function I think we are getting close, but you will have to give me a tiny bit more information - where do I insert that extra code? In the body of that existing code, and if so where? It was not obvious to me - sorry! I'm not a VBA Guru like you, so please have patience with me!!! |
#8
|
|||
|
|||
![]()
Put all the code in the same VBA code module.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Stephen Morgan" wrote in message ... Sue Mosher [MVP-Outlook] wrote: Sorry. I forgot to include the Quote() function, which is simply: Function Quote(val) as String Quote = Chr(34) & CStr(val) & Chr(34) End Function I think we are getting close, but you will have to give me a tiny bit more information - where do I insert that extra code? In the body of that existing code, and if so where? It was not obvious to me - sorry! I'm not a VBA Guru like you, so please have patience with me!!! |
#9
|
|||
|
|||
![]()
Sue Mosher [MVP-Outlook] wrote:
Put all the code in the same VBA code module. Sue, Thanks for the hint, but I cannot determine EXACTLY where I should be copying the second piece of code. Should it ALL be in "ThisOutlookSession" or in "Module1"? Should the second piece of code be embedded inside the first lines of code? If so, where? As you can gather, it's not yet fixed. Any further help greatfully accepted, but if one more shot does not work, I'll revert to doing it by hand. |
#10
|
|||
|
|||
![]()
It doesn't matter which module you put the code in. They are two separate procedures. One needs to follow another. THe order doesn't matter.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Stephen Morgan" wrote in message ... Sue Mosher [MVP-Outlook] wrote: Put all the code in the same VBA code module. Sue, Thanks for the hint, but I cannot determine EXACTLY where I should be copying the second piece of code. Should it ALL be in "ThisOutlookSession" or in "Module1"? Should the second piece of code be embedded inside the first lines of code? If so, where? As you can gather, it's not yet fixed. Any further help greatfully accepted, but if one more shot does not work, I'll revert to doing it by hand. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linking Outlook fields from the "Contact Folder" to a custom form in Outlook... | Sue Mosher [MVP-Outlook] | Outlook - Using Forms | 0 | December 26th 06 01:32 PM |
Linking Outlook fields from the "Contact Folder" to a custom form in Outlook... | Jeff | Outlook - General Queries | 1 | December 26th 06 04:50 AM |
Linking Outlook fields from the "Contact Folder" to a custom form in Outlook... | Jeff | Outlook - Using Forms | 0 | December 24th 06 10:04 PM |
Linking excell to Oulook Contact list | Miles | Outlook and VBA | 1 | November 16th 06 03:45 PM |
Business Contact Manager should allow linking of multiple items | Corey Glover | Outlook - Using Contacts | 0 | February 27th 06 10:21 PM |