<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBA: Outlook открытие файла макросом]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9405&amp;type=atom" />
	<updated>2014-03-25T05:48:53Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9405</id>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Outlook открытие файла макросом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81197#p81197" />
			<content type="html"><![CDATA[<p>Вот у меня такой макрос получился. Создал кнопку на основной панели Outlook.<br />и ничего не происходит, когда на неё кликаю.<br />Outlook 2007</p><div class="codebox"><pre><code>Sub Создать()
    Dim OL As Outlook.Application
    Dim Msg As Outlook.MailItem
    Set OL = New Outlook.Application
    Set Msg = OL.CreateItemFromTemplate(&quot;C:\Users\izhavoronkov\Desktop\1.msg&quot;)
End Sub
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[squadgazzz]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31978</uri>
			</author>
			<updated>2014-03-25T05:48:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81197#p81197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Outlook открытие файла макросом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81196#p81196" />
			<content type="html"><![CDATA[<p>в excel при выполнении макроса открывается документ Workbooks.Open Filename:= _ <br />&quot;C:\Documents and Settings\David\My Documents\Book1.xls&quot;.</p><p>мне нужно, чтобы outlook так же при выполнении макроса открывал файл C:\Documents and Settings\David\My Documents\message.msg.</p><p>какой макрос нужно написать?</p>]]></content>
			<author>
				<name><![CDATA[squadgazzz]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31978</uri>
			</author>
			<updated>2014-03-25T05:41:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81196#p81196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Outlook открытие файла макросом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81185#p81185" />
			<content type="html"><![CDATA[<p><strong>squadgazzz</strong>, поясните, что значит «открывал», и откуда брать путь к «нужному файлу».</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-03-25T00:43:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81185#p81185</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBA: Outlook открытие файла макросом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81171#p81171" />
			<content type="html"><![CDATA[<p>Добрый день!</p><p>Подскажите пожалуйста, какой макрос необходимо прописать в Outlook, чтобы тот при нажатии на кнопку(она уже подготовлена) открывал нужный мне файл. В частности файл MSG - заранее подготовленная форма письма.</p><p>Либо как это сделать иначе?</p><p>В excel код выглядел бы так:<br />Workbooks.Open Filename:= _ <br />&quot;C:\Documents and Settings\David\My Documents\Book1.xls&quot; </p><p>но workbooks не работает в outlook.<br />как быть?</p>]]></content>
			<author>
				<name><![CDATA[squadgazzz]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31978</uri>
			</author>
			<updated>2014-03-24T12:35:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81171#p81171</id>
		</entry>
</feed>
