A Way to Save Contact Cards in MS Exchange Outlook to Excel or TabDel in order to import into Filemaker?

Is there a way to Save Contact Cards in MS Exchange Outlook to Excel or TabDel in order to import into Filemaker?  Did an Internet search, but all the methods I try don't work.  When I open the contact card that appears in the attachment, there isn't the File Menu or right click selections the directions say there are.   Even tried to import into Outlook to export back out, but still can find the menu items to support that.  Thank you.
Capture.JPG
LVL 2
rvfowler2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Professor JMicrosoft Excel ExpertCommented:
From outlook xport your contacts as comma -separated text (.csv)  tab-delimited text (.txt) or as vCards (.vcf).   If you select vCards, then, in the search engine of your choice, search for  “vCard to CSV” and rhen choose any of preferred converters.  You can then import the CSV file into FileMaker Pro by choosing File > Import Records > File.
rvfowler2Author Commented:
That part I know, but how do you get a card that is sent as an attachment exported or alternatively imported into Outlook and then exported to a .csv, etc.?
David Johnson, CD, MVPRetiredCommented:
Which version of outlook? Things change over time
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

rvfowler2Author Commented:
MS office 2013 using MS Exchange Server 2010.  See attached contact card (redacted).
Capture2.JPG
Professor JMicrosoft Excel ExpertCommented:
i am still not sure, i understood the question, from what i understood that you have your business cards vcf contacts received as attachments in your outlook. if that is the case well, it is not an easy thing, but here is my try.

first you need to use the below code that saves all vcf attachments from your outlook folder

please read the code commentaries. this code original source is Ron's Excel site.

Sub Test()
'Arg 1 = Folder name of folder inside your Inbox if you do not have one First right click on the Inbox and choose New Folder
'Arg 2 = File extension, "" is every file
'Arg 3 = Save folder, "C:\Users\Ron\test" or ""
'        If you use "" it will create a date/time stamped folder for you in your "Documents" folder
'        Note: If you use this "C:\Users\Ron\test" the folder must exist.

' on the Arg one lets say you created a folder called Contacts under inbox and you have moved all of your emails there
' then put that folder name in the code like shown below

    SaveEmailAttachmentsToFolder "Contacts", "vcf", "C:\Users\Username\VCFAttachments\"
    
End Sub

Sub SaveEmailAttachmentsToFolder(OutlookFolderInInbox As String, _
                                 ExtString As String, DestFolder As String)
    Dim ns As NameSpace
    Dim Inbox As MAPIFolder
    Dim SubFolder As MAPIFolder
    Dim Item As Object
    Dim Atmt As Attachment
    Dim FileName As String
    Dim MyDocPath As String
    Dim I As Integer
    Dim wsh As Object
    Dim fs As Object

    On Error GoTo ThisMacro_err

    Set ns = GetNamespace("MAPI")
    Set Inbox = ns.GetDefaultFolder(olFolderInbox)
    Set SubFolder = Inbox.Folders(OutlookFolderInInbox)

    I = 0
    ' Check subfolder for messages and exit of none found
    If SubFolder.Items.Count = 0 Then
        MsgBox "There are no messages in this folder : " & OutlookFolderInInbox, _
               vbInformation, "Nothing Found"
        Set SubFolder = Nothing
        Set Inbox = Nothing
        Set ns = Nothing
        Exit Sub
    End If

    'Create DestFolder if DestFolder = ""
    If DestFolder = "" Then
        Set wsh = CreateObject("WScript.Shell")
        Set fs = CreateObject("Scripting.FileSystemObject")
        MyDocPath = wsh.SpecialFolders.Item("mydocuments")
        DestFolder = MyDocPath & "\" & Format(Now, "dd-mmm-yyyy hh-mm-ss")
        If Not fs.FolderExists(DestFolder) Then
            fs.CreateFolder DestFolder
        End If
    End If

    If Right(DestFolder, 1) <> "\" Then
        DestFolder = DestFolder & "\"
    End If

    ' Check each message for attachments and extensions
    For Each Item In SubFolder.Items
        For Each Atmt In Item.Attachments
            If LCase(Right(Atmt.FileName, Len(ExtString))) = LCase(ExtString) Then
                FileName = DestFolder & Item.SenderName & " " & Atmt.FileName
                Atmt.SaveAsFile FileName
                I = I + 1
            End If
        Next Atmt
    Next Item

    ' Show this message when Finished
    If I > 0 Then
        MsgBox "You can find the files here : " _
             & DestFolder, vbInformation, "Finished!"
    Else
        MsgBox "No attached files in your mail.", vbInformation, "Finished!"
    End If

    ' Clear memory
ThisMacro_exit:
    Set SubFolder = Nothing
    Set Inbox = Nothing
    Set ns = Nothing
    Set fs = Nothing
    Set wsh = Nothing
    Exit Sub

    ' Error information
ThisMacro_err:
    MsgBox "An unexpected error has occurred." _
         & vbCrLf & "Please note and report the following information." _
         & vbCrLf & "Macro Name: SaveEmailAttachmentsToFolder" _
         & vbCrLf & "Error Number: " & Err.Number _
         & vbCrLf & "Error Description: " & Err.Description _
         , vbCritical, "Error!"
    Resume ThisMacro_exit

End Sub

Open in new window


once you have all of your attachments vcf files into a folder, then the below code needs to run and it will prompt askign you to select the folder and then vcf files and once you selected them and clicked ok then it will import all of the informations of vcf files into Excel.

Option Explicit
 
'original source mrexcel forum
Const MainSheet As String = "Sheet1"
Dim iRowPointer As Long
Dim iFileCount As Long
 
Public Sub Import_VCF_Files()
 
  Dim iPtr As Long
  Dim sFileArray As Variant
  Dim sFileName As Variant
  Dim dtStart As Date
 
  iPtr = InStrRev(ActiveWorkbook.FullName, ".")
  If iPtr = 0 Then
    sFileName = ActiveWorkbook.FullName & ".vcf"
  Else
    sFileName = Left(ActiveWorkbook.FullName, iPtr - 1) & ".vcf"
  End If
  sFileArray = Application.GetOpenFilename(FileFilter:="VCF files (*.vcf), *.vcf", MultiSelect:=True)
  If Not IsArray(sFileArray) Then Exit Sub
 
  Sheets(MainSheet).Columns("A").ClearContents
  dtStart = Now()
  iFileCount = 0
  iRowPointer = 0
 
  Application.ScreenUpdating = False
 
  For Each sFileName In sFileArray
    Call Import_VCard(sFileName)
    iFileCount = iFileCount + 1
  Next sFileName
 
  Application.ScreenUpdating = True
 
  MsgBox "Finished: " & CStr(iFileCount) & " file" & IIf(iFileCount = 1, "", "s") & " imported" _
       & Space(10) & vbCrLf & vbCrLf _
       & "Run time: " & Format(Now() - dtStart, "hh:nn:ss") & Space(10), _
       vbOKOnly + vbInformation
 
End Sub
 
Private Sub Import_VCard(ByVal argFilename As String)
 
  Dim intFH As Integer
  Dim sRecord As String
 
  Close
  intFH = FreeFile()
  Open argFilename For Input As intFH
 
  iRowPointer = iRowPointer + 1
  Sheets(MainSheet).Cells(iRowPointer, 1) = argFilename
 
  Do Until EOF(intFH)
    Line Input #intFH, sRecord
    iRowPointer = iRowPointer + 1
    Sheets(MainSheet).Cells(iRowPointer, 1) = sRecord
    DoEvents
  Loop
 
  Close intFH
 
End Sub

Open in new window


i tried this by myself and it worked.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rvfowler2Author Commented:
Great, thanks so much.
Professor JMicrosoft Excel ExpertCommented:
you are welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.