<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：如何批量导入vCard格式联系人到Outlook</title>
	<atom:link href="http://www.kongcuo.com/archives/38.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kongcuo.com/archives/38.html</link>
	<description>关注地球科学 &#124; 户外旅行的个人博客</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:43:43 +0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：WANGZAI</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-739</link>
		<dc:creator>WANGZAI</dc:creator>
		<pubDate>Thu, 06 Oct 2011 13:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-739</guid>
		<description>将vcard文件和路径指定好，自己新创建一个模块，直接运行你粘贴上去的代码就可以了。</description>
		<content:encoded><![CDATA[<p>将vcard文件和路径指定好，自己新创建一个模块，直接运行你粘贴上去的代码就可以了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：WANGZAI</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-738</link>
		<dc:creator>WANGZAI</dc:creator>
		<pubDate>Thu, 06 Oct 2011 13:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-738</guid>
		<description>SHY的程序不错，但运行时屏闪刷新严重，受不了啊。
请在程序中增加两行：
开始运行程序中增加一行，防止运行时屏闪：
Application.ScreenUpdating = False
最后面程序结束前增加一行：
Application.ScreenUpdating = True</description>
		<content:encoded><![CDATA[<p>SHY的程序不错，但运行时屏闪刷新严重，受不了啊。<br />
请在程序中增加两行：<br />
开始运行程序中增加一行，防止运行时屏闪：<br />
Application.ScreenUpdating = False<br />
最后面程序结束前增加一行：<br />
Application.ScreenUpdating = True</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：leilei</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-737</link>
		<dc:creator>leilei</dc:creator>
		<pubDate>Thu, 06 Oct 2011 06:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-737</guid>
		<description>我是2007，运行宏，总是提示我“该工程中的宏已经被禁用”</description>
		<content:encoded><![CDATA[<p>我是2007，运行宏，总是提示我“该工程中的宏已经被禁用”</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：shy</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-720</link>
		<dc:creator>shy</dc:creator>
		<pubDate>Tue, 21 Jun 2011 07:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-720</guid>
		<description>感谢楼主。
下面的修改可以修正带空格文件名的错误。

Sub OpenSaveVCard()
Dim objWSHShell As IWshRuntimeLibrary.IWshShell
Dim objOL As Outlook.Application
Dim colInsp As Outlook.Inspectors
Dim strVCName As String
Dim fso As Scripting.FileSystemObject
Dim fsDir As Scripting.Folder
Dim fsFile As Scripting.File
Dim vCounter As Integer

Set fso = New Scripting.FileSystemObject
Set fsDir = fso.GetFolder(&quot;c:\files\Personal\SD_Backup\moto_backup&quot;)
For Each fsFile In fsDir.Files
strVCName = &quot;c:\files\Personal\SD_Backup\moto_backup\&quot; &amp; fsFile.Name
Set objOL = CreateObject(&quot;Outlook.Application&quot;)
Set colInsp = objOL.Inspectors
If colInsp.Count = 0 Then
Set objWSHShell = CreateObject(&quot;WScript.Shell&quot;)

If InStr(fsFile.Name, &quot; &quot;) &gt; 0 Then
      strVCName = &quot;c:\files\Personal\SD_Backup\moto_backup\&quot; &amp; Chr(34) &amp; fsFile.Name &amp; Chr(34)
      objWSHShell.Run (Chr(34) &amp; &quot;c:\files\Personal\SD_Backup\moto_backup\&quot; &amp; fsFile.Name &amp; Chr(34))
Else
     objWSHShell.Run strVCName
End If

Set colInsp = objOL.Inspectors
If Err = 0 Then
Do Until colInsp.Count = 1
DoEvents
Loop
colInsp.Item(1).CurrentItem.Save
colInsp.Item(1).Close olDiscard
Set colInsp = Nothing
Set objOL = Nothing
Set objWSHShell = Nothing
End If
End If
Next
End Sub</description>
		<content:encoded><![CDATA[<p>感谢楼主。<br />
下面的修改可以修正带空格文件名的错误。</p>
<p>Sub OpenSaveVCard()<br />
Dim objWSHShell As IWshRuntimeLibrary.IWshShell<br />
Dim objOL As Outlook.Application<br />
Dim colInsp As Outlook.Inspectors<br />
Dim strVCName As String<br />
Dim fso As Scripting.FileSystemObject<br />
Dim fsDir As Scripting.Folder<br />
Dim fsFile As Scripting.File<br />
Dim vCounter As Integer</p>
<p>Set fso = New Scripting.FileSystemObject<br />
Set fsDir = fso.GetFolder(&#8221;c:\files\Personal\SD_Backup\moto_backup&#8221;)<br />
For Each fsFile In fsDir.Files<br />
strVCName = &#8220;c:\files\Personal\SD_Backup\moto_backup\&#8221; &amp; fsFile.Name<br />
Set objOL = CreateObject(&#8221;Outlook.Application&#8221;)<br />
Set colInsp = objOL.Inspectors<br />
If colInsp.Count = 0 Then<br />
Set objWSHShell = CreateObject(&#8221;WScript.Shell&#8221;)</p>
<p>If InStr(fsFile.Name, &#8221; &#8220;) &gt; 0 Then<br />
      strVCName = &#8220;c:\files\Personal\SD_Backup\moto_backup\&#8221; &amp; Chr(34) &amp; fsFile.Name &amp; Chr(34)<br />
      objWSHShell.Run (Chr(34) &amp; &#8220;c:\files\Personal\SD_Backup\moto_backup\&#8221; &amp; fsFile.Name &amp; Chr(34))<br />
Else<br />
     objWSHShell.Run strVCName<br />
End If</p>
<p>Set colInsp = objOL.Inspectors<br />
If Err = 0 Then<br />
Do Until colInsp.Count = 1<br />
DoEvents<br />
Loop<br />
colInsp.Item(1).CurrentItem.Save<br />
colInsp.Item(1).Close olDiscard<br />
Set colInsp = Nothing<br />
Set objOL = Nothing<br />
Set objWSHShell = Nothing<br />
End If<br />
End If<br />
Next<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：carrot</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-716</link>
		<dc:creator>carrot</dc:creator>
		<pubDate>Wed, 18 May 2011 04:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-716</guid>
		<description>真的是不能有空格在里面。哎~</description>
		<content:encoded><![CDATA[<p>真的是不能有空格在里面。哎~</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：lizzy</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-704</link>
		<dc:creator>lizzy</dc:creator>
		<pubDate>Mon, 25 Apr 2011 07:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-704</guid>
		<description>狂顶！解决了我的大问题！真是爱死你了！</description>
		<content:encoded><![CDATA[<p>狂顶！解决了我的大问题！真是爱死你了！</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：qingtianhnh</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-703</link>
		<dc:creator>qingtianhnh</dc:creator>
		<pubDate>Mon, 25 Apr 2011 03:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-703</guid>
		<description>没有“Windows Script Host Object Model ”怎么办？</description>
		<content:encoded><![CDATA[<p>没有“Windows Script Host Object Model ”怎么办？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：MarcoWang</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-688</link>
		<dc:creator>MarcoWang</dc:creator>
		<pubDate>Sun, 03 Apr 2011 04:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-688</guid>
		<description>我也只读取了第一个联系人。该怎么办？</description>
		<content:encoded><![CDATA[<p>我也只读取了第一个联系人。该怎么办？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：tonyshoppe</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-673</link>
		<dc:creator>tonyshoppe</dc:creator>
		<pubDate>Mon, 28 Feb 2011 13:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-673</guid>
		<description>我用了，引号是有问题，但是改过来后发现只读取了第一个联系人，其它就没有反应了。</description>
		<content:encoded><![CDATA[<p>我用了，引号是有问题，但是改过来后发现只读取了第一个联系人，其它就没有反应了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：inseven</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-658</link>
		<dc:creator>inseven</dc:creator>
		<pubDate>Fri, 21 Jan 2011 05:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-658</guid>
		<description>具体是怎么操作呢?</description>
		<content:encoded><![CDATA[<p>具体是怎么操作呢?</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：AllenLucky</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-641</link>
		<dc:creator>AllenLucky</dc:creator>
		<pubDate>Fri, 07 Jan 2011 03:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-641</guid>
		<description>我也能成功导入，但也是乱码·</description>
		<content:encoded><![CDATA[<p>我也能成功导入，但也是乱码·</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：路过</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-624</link>
		<dc:creator>路过</dc:creator>
		<pubDate>Wed, 13 Oct 2010 02:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-624</guid>
		<description>这么好的方法，一定要顶。</description>
		<content:encoded><![CDATA[<p>这么好的方法，一定要顶。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：vcf文件批量导入outlook &#124; yeppfox</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-565</link>
		<dc:creator>vcf文件批量导入outlook &#124; yeppfox</dc:creator>
		<pubDate>Sun, 18 Jul 2010 04:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-565</guid>
		<description>[...] 有几百个vcf格式的联系人需要全部导入outlook的联系人中，在空错志找了段程序，方法如下： [...]</description>
		<content:encoded><![CDATA[<p>[...] 有几百个vcf格式的联系人需要全部导入outlook的联系人中，在空错志找了段程序，方法如下： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Rabbi_52</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-541</link>
		<dc:creator>Rabbi_52</dc:creator>
		<pubDate>Tue, 29 Jun 2010 07:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-541</guid>
		<description>语法错误啊！怎么办？</description>
		<content:encoded><![CDATA[<p>语法错误啊！怎么办？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：heroaunty</title>
		<link>http://www.kongcuo.com/archives/38.html#comment-466</link>
		<dc:creator>heroaunty</dc:creator>
		<pubDate>Sat, 13 Mar 2010 14:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.kongcuo.com/?p=38#comment-466</guid>
		<description>非常感谢楼主提供的方法。我的问题已经解决。
其中遇到过一个小问题供后人借鉴：objWSHShell.Run strVCName这行报错
后来发现是不支持文件名中有空格的原因。文件名修改即好。

by theway：我用的是outlook2007</description>
		<content:encoded><![CDATA[<p>非常感谢楼主提供的方法。我的问题已经解决。<br />
其中遇到过一个小问题供后人借鉴：objWSHShell.Run strVCName这行报错<br />
后来发现是不支持文件名中有空格的原因。文件名修改即好。</p>
<p>by theway：我用的是outlook2007</p>
]]></content:encoded>
	</item>
</channel>
</rss>

