<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[מיזוג דואר בקוד VBA - אקסס]]></title><description><![CDATA[<p dir="auto">שלום וברכה.<br />
יש לי קוד למיזוג דואר מקובץ אקסל לקובץ וורד, הקוד עובד במחשב שלי מצוין.<br />
אבל במחשב של הלקוח מופיעה הודעת שגיאה שהפקודה 'OpenDataSource' לא פעילה.<br />
הקוד של המיזוג הוא:</p>
<pre><code>wordApp.Documents.Open FileName:=WordPath, ReadOnly:=True
If err &lt;&gt; 0 Then MsgBox "התרחשה שגיאה בפתיחת הוורד" &amp; vbCrLf &amp; err.Description, vbOKOnly + vbQuestion + vbMsgBoxRight + vbMsgBoxRtlReading: Exit Function

With wordApp.ActiveDocument.MailMerge
    .MainDocumentType = wdFormLetters
    .OpenDataSource _
        Name:=XlsxPath, _
        SQLStatement:="select * from TEMP"
    .Destination = wdSendToPrinter
    .ViewMailMergeFieldCodes = 9999998
    .ShowWizard InitialState:=6, ShowDataStep:=False, ShowTemplateStep:=False
    .SuppressBlankLines = True
    .Execute
End With
wordApp.Quit False
Set wordApp = Nothing
</code></pre>
<p dir="auto">השגיאה מופיעה על הקטע</p>
<pre><code>.OpenDataSource _
        Name:=XlsxPath, _
        SQLStatement:="select * from TEMP"
</code></pre>
<p dir="auto">מה יכולה להיות הבעיה?<br />
תודה!</p>
]]></description><link>https://tchumim.com/topic/14835/מיזוג-דואר-בקוד-vba-אקסס</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 02:35:18 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/14835.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Mar 2023 14:15:20 GMT</pubDate><ttl>60</ttl></channel></rss>