Rebuild Contacts Links

G

Guest

I recently installed Vista and and Office 2003. Now when I click on a
Contact link on the bottom left hand corner of a Contact in Outlook, I get
the following message. "Cannot perform the requested operation. The command
selected is not valid for this recipient." I remember that there is a
command to rebuild these links, but I can't remember what it is.
 
B

Brian Tillman

chunnel said:
I recently installed Vista and and Office 2003. Now when I click on a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient." I
remember that there is a command to rebuild these links, but I can't
remember what it is.

How did you migrate your data after the installation? Did you start with a
new mail profile?
 
G

Guest

I created a new mail profile and added the Outlook file and Archive, made
them the default and deleted the Outlook file that came with the new profile.
 
B

Brian Tillman

chunnel said:
I created a new mail profile and added the Outlook file and Archive,
made them the default and deleted the Outlook file that came with the
new profile.

Hm. That's the correct method. It should have preserved your links. As
long as you avoid export/import, the links should have worked.. Sorry, I
don't have any suggestions.
 
R

Russ Valentine [MVP-Outlook]

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
 
G

Guest

I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

Russ Valentine said:
Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
Russ Valentine
[MVP-Outlook]
chunnel said:
I created a new mail profile and added the Outlook file and Archive, made
them the default and deleted the Outlook file that came with the new
profile.
 
R

Russ Valentine [MVP-Outlook]

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

Russ Valentine said:
Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
Russ Valentine
[MVP-Outlook]
chunnel said:
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

:


I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.

How did you migrate your data after the installation? Did you start
with
a
new mail profile?
 
G

Guest

I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

Russ Valentine said:
Inexplicable.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

Russ Valentine said:
Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
Russ Valentine
[MVP-Outlook]
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

:


I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.

How did you migrate your data after the installation? Did you start
with
a
new mail profile?
 
R

Russ Valentine [MVP-Outlook]

None that I'm aware of. You can look at the list of possibilities:
http://support.microsoft.com/support/kb/articles/q156/9/82.asp


--
Russ Valentine
[MVP-Outlook]
chunnel said:
I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

Russ Valentine said:
Inexplicable.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
I just removed and created a new Outlook address book, if that's what
you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
Russ Valentine
[MVP-Outlook]
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

:


I recently installed Vista and and Office 2003. Now when I click
on
a
Contact link on the bottom left hand corner of a Contact in
Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this
recipient."
I
remember that there is a command to rebuild these links, but I
can't
remember what it is.

How did you migrate your data after the installation? Did you
start
with
a
new mail profile?
 
S

Sue Mosher [MVP-Outlook]

No, that's not a problem that can be fixed with a command-line switch. Is the .pst file on the new machine in exactly the same folder path as the one on the old machine? If not, that could be part of the problem.

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

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


chunnel said:
I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

Russ Valentine said:
Inexplicable.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.
 
G

Guest

No it's not, I'm now in Vista, and I tried to create a new path that would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

Sue Mosher said:
No, that's not a problem that can be fixed with a command-line switch. Is the .pst file on the new machine in exactly the same folder path as the one on the old machine? If not, that could be part of the problem.

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

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


chunnel said:
I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

Russ Valentine said:
Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.
 
S

Sue Mosher [MVP-Outlook]

Too bad that the path was to My Documents.

The only other solution would involve running some VBA code. I hesitate to suggest that unless you're comfortable working with VBA (see http://www.outlookcode.com/d/vbabasics.htm) and take care to make a backup of the data before running the code. Let me know.

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

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


chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

Sue Mosher said:
No, that's not a problem that can be fixed with a command-line switch. Is the .pst file on the new machine in exactly the same folder path as the one on the old machine? If not, that could be part of the problem.
chunnel said:
I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.
 
G

Guest

Yes! That's what happened last time. You gave me some VBA code to fix it. I
have multiple copies of my Outlook file, so I'm not concerned about the data.

Sue Mosher said:
Too bad that the path was to My Documents.

The only other solution would involve running some VBA code. I hesitate to suggest that unless you're comfortable working with VBA (see http://www.outlookcode.com/d/vbabasics.htm) and take care to make a backup of the data before running the code. Let me know.

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

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


chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

Sue Mosher said:
No, that's not a problem that can be fixed with a command-line switch. Is the .pst file on the new machine in exactly the same folder path as the one on the old machine? If not, that could be part of the problem.
I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.
 
R

Russ Valentine [MVP-Outlook]

FWIW, I had no similar problem when I migrated to Vista. Although the path
changes, Vista's junction points seem to have taken care of the redirection.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

Sue Mosher said:
No, that's not a problem that can be fixed with a command-line switch. Is
the .pst file on the new machine in exactly the same folder path as the
one on the old machine? If not, that could be part of the problem.

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

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


chunnel said:
I remember talking to Sue at one point about this a year or so ago and
she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's what
you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset
your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and
Archive,
made
them the default and deleted the Outlook file that came with the
new
profile.

I recently installed Vista and and Office 2003. Now when I
click on
a
Contact link on the bottom left hand corner of a Contact in
Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this
recipient."
I
remember that there is a command to rebuild these links, but I
can't
remember what it is.
 
S

Sue Mosher [MVP-Outlook]

See if the code sample at http://www.outlookcode.com/codedetail.aspx?id=1519 does the job.

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

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


chunnel said:
Yes! That's what happened last time. You gave me some VBA code to fix it. I
have multiple copies of my Outlook file, so I'm not concerned about the data.

Sue Mosher said:
The only other solution would involve running some VBA code. I hesitate to suggest that unless you're comfortable working with VBA (see http://www.outlookcode.com/d/vbabasics.htm) and take care to make a backup of the data before running the code. Let me know.

chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

:

No, that's not a problem that can be fixed with a command-line switch. Is the .pst file on the new machine in exactly the same folder path as the one on the old machine? If not, that could be part of the problem.
I remember talking to Sue at one point about this a year or so ago and she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's what you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and Archive,
made
them the default and deleted the Outlook file that came with the new
profile.

I recently installed Vista and and Office 2003. Now when I click on
a
Contact link on the bottom left hand corner of a Contact in Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this recipient."
I
remember that there is a command to rebuild these links, but I can't
remember what it is.
 
S

Sue Mosher [MVP-Outlook]

Maybe it's a difference with Outlook 2007 as well? Or do you have 2003 on the Vista machine?

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

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


Russ Valentine said:
FWIW, I had no similar problem when I migrated to Vista. Although the path
changes, Vista's junction points seem to have taken care of the redirection.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

Sue Mosher said:
No, that's not a problem that can be fixed with a command-line switch. Is
the .pst file on the new machine in exactly the same folder path as the
one on the old machine? If not, that could be part of the problem.

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

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


I remember talking to Sue at one point about this a year or so ago and
she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's what
you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset
your
Outlook Address Book Service to use the file you migrated. Did you?
--
I created a new mail profile and added the Outlook file and
Archive,
made
them the default and deleted the Outlook file that came with the
new
profile.

I recently installed Vista and and Office 2003. Now when I
click on
a
Contact link on the bottom left hand corner of a Contact in
Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this
recipient."
I
remember that there is a command to rebuild these links, but I
can't
remember what it is.
 
R

Russ Valentine [MVP-Outlook]

Outlook 2007. I migrated a PST file from Outlook 2003.
--
Russ Valentine
[MVP-Outlook]
Maybe it's a difference with Outlook 2007 as well? Or do you have 2003 on
the Vista machine?

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

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


Russ Valentine said:
FWIW, I had no similar problem when I migrated to Vista. Although the path
changes, Vista's junction points seem to have taken care of the
redirection.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that
would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

Sue Mosher said:
No, that's not a problem that can be fixed with a command-line switch.
Is
the .pst file on the new machine in exactly the same folder path as the
one on the old machine? If not, that could be part of the problem.

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

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


I remember talking to Sue at one point about this a year or so ago and
she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's
what
you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset
your
Outlook Address Book Service to use the file you migrated. Did
you?
--
I created a new mail profile and added the Outlook file and
Archive,
made
them the default and deleted the Outlook file that came with the
new
profile.

I recently installed Vista and and Office 2003. Now when I
click on
a
Contact link on the bottom left hand corner of a Contact in
Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this
recipient."
I
remember that there is a command to rebuild these links, but
I
can't
remember what it is.
 
G

Guest

I tried the ReconnectLinks () from Listing 20.2 and I keep getting an error
at the line which is as follows;
If objLink.item Is Nothing Then
strFind = "[FullName] = _
" & Quote(objLink.Name)

If I type it as written then I get an compile error for unexpected end of
statement because I hit return after the "_". If it keep the 3rd line as
part of the 2nd line so that it looks as follows;
strFind = "[FullName] = _" & Quote(objLink.Name)
then I get an error when running it that Sub or Function is not defined and
it focuses on this line.

Russ Valentine said:
Outlook 2007. I migrated a PST file from Outlook 2003.
--
Russ Valentine
[MVP-Outlook]
Maybe it's a difference with Outlook 2007 as well? Or do you have 2003 on
the Vista machine?

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

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


Russ Valentine said:
FWIW, I had no similar problem when I migrated to Vista. Although the path
changes, Vista's junction points seem to have taken care of the
redirection.
--
Russ Valentine
[MVP-Outlook]
chunnel said:
No it's not, I'm now in Vista, and I tried to create a new path that
would
mimic the old one, but when I try to creat a folder called Documents and
Settings, I get a message that the info in this folder will get moved to
Users.

:

No, that's not a problem that can be fixed with a command-line switch.
Is
the .pst file on the new machine in exactly the same folder path as the
one on the old machine? If not, that could be part of the problem.

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

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


I remember talking to Sue at one point about this a year or so ago and
she
had some kind of Command line switch that fixed this problem.

:

Inexplicable.
--
Russ Valentine
[MVP-Outlook]
I just removed and created a new Outlook address book, if that's
what
you
meant. But the problem remains.

:

Even though you migrated data correctly, you still need to reset
your
Outlook Address Book Service to use the file you migrated. Did
you?
--
I created a new mail profile and added the Outlook file and
Archive,
made
them the default and deleted the Outlook file that came with the
new
profile.

I recently installed Vista and and Office 2003. Now when I
click on
a
Contact link on the bottom left hand corner of a Contact in
Outlook,
I get the following message. "Cannot perform the requested
operation. The command selected is not valid for this
recipient."
I
remember that there is a command to rebuild these links, but
I
can't
remember what it is.
 
S

Sue Mosher [MVP-Outlook]

The underscore is a continuation character. If you put the entire statement on one line, you must take the underscore out. If you leave it in, the quotation mark needs to be after the equals sign.

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

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

Guest

I have tried what you mentioned but am still getting "Sub or Function not
defined". I hate to cut and paste the whole thing, but can you see an error
with what I've written?

Sub ReconnectLinks()
Dim objApp As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objFolder As Outlook.MAPIFolder
Dim colItems As Outlook.Items
Dim objItem As Object
Dim colLinks As Outlook.Links
Dim objLink As Outlook.Link
Dim colContacts As Outlook.Items
Dim objContact As Outlook.ContactItem
Dim strFind As String
Dim intCount As Integer
Dim I As Integer
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objFolder = objNS.PickFolder
If TypeName(objFolder) <> "Nothing" Then
Set colContacts = _
objNS.GetDefaultFolder(olFolderContacts).Items
Set colItems = objFolder.Items
For Each objItem In colItems
Set colLinks = objItem.Links
intCount = colLinks.Count
If intCount > 0 Then
For I = intCount To 1 Step -1
Set objLink = colLinks.Item(I)
On Error Resume Next
If objLink.Item Is Nothing Then
strFind = "[FullName] = " & Quote(objLink.Name)
Set objContact = colContacts.Find(strFind)
If Not objContact Is Nothing Then
colLinks.Remove I
colLinks.Add objContact
End If
End If
Next
If Not objItem.Saved Then
objItem.Save
End If
End If
Next
End If

Set colContacts = Nothing
Set objContacts = Nothing
Set objLink = Nothing
Set colLinks = Nothing
Set objItem = Nothing
Set objItems = Nothing
Set objFolder = Nothing
Set objNS = Nothing
Set objApp = Nothing
End Sub
Private Function Quote(varInput)
Quote = Chr(34) & varInput & Chr(34)
End Function







Sue Mosher said:
The underscore is a continuation character. If you put the entire statement on one line, you must take the underscore out. If you leave it in, the quotation mark needs to be after the equals sign.

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

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


chunnel said:
I tried the ReconnectLinks () from Listing 20.2 and I keep getting an error
at the line which is as follows;
If objLink.item Is Nothing Then
strFind = "[FullName] = _
" & Quote(objLink.Name)

If I type it as written then I get an compile error for unexpected end of
statement because I hit return after the "_". If it keep the 3rd line as
part of the 2nd line so that it looks as follows;
strFind = "[FullName] = _" & Quote(objLink.Name)
then I get an error when running it that Sub or Function is not defined and
it focuses on this line.
 

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