<?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=5514&amp;type=atom" />
	<updated>2011-02-15T09:23:56Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=5514</id>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45168#p45168" />
			<content type="html"><![CDATA[<p>А не, это я окном ошибся, вот в такую ошибку упираюсь.<br />---------------------------<br />Microsoft Visual Basic<br />---------------------------<br />Compile error:</p><p>User-defined type not defined<br />---------------------------<br />ОК&nbsp; &nbsp;Справка&nbsp; &nbsp;<br />---------------------------</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-15T09:23:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45168#p45168</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45167#p45167" />
			<content type="html"><![CDATA[<p>Во, супер, а я ходил все вокруг, да около)</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-15T09:21:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45167#p45167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45164#p45164" />
			<content type="html"><![CDATA[<p>Наподобие:<br /></p><div class="codebox"><pre><code>Dim objOutlook As New Outlook.Application

Set myItem = objOutlook.CreateItem(1) &#039;Create an appointment
…</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-02-15T08:48:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45164#p45164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45163#p45163" />
			<content type="html"><![CDATA[<p>Конечно прошу прощения, но можно на пальцах)<br /></p><div class="codebox"><pre><code>Sub test2()
Set myItem = Application.CreateItem(1) &#039;Create an appointment
    myItem.MeetingStatus = 1 &#039;Appointment is a meeting
    myItem.Subject = &quot;Marketing Strategy Meeting&quot;
    myItem.Location = &quot;Conference Room B&quot;
    myItem.Start = #2/14/2011 6:30:00 PM#
    myItem.Duration = 90
    MyAttendee = InputBox(&quot;Enter name of Required Attendee&quot;)
    If MyAttendee &lt;&gt; &quot;&quot; Then
        Set myRequiredAttendee = myItem.Recipients.Add(MyAttendee)
        myRequiredAttendee.Type = 1 &#039;Required
    End If
    MyAttendee = InputBox(&quot;Enter name of Optional Attendee&quot;)
    If MyAttendee &lt;&gt; &quot;&quot; Then
        Set myOptionalAttendee = myItem.Recipients.Add(MyAttendee)
        myOptionalAttendee.Type = 2 &#039;Optional
    End If
    myItem.Send
End Sub</code></pre></div><p>Вот этот код сейчас работает в Outlook, но не работает в Excel. Как я понимаю<br /></p><div class="codebox"><pre><code>Set myItem = Application.CreateItem(1) &#039;Create an appointment</code></pre></div><p>тут я должен создать ссылку на объект оутлука?</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-15T07:21:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45163#p45163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45162#p45162" />
			<content type="html"><![CDATA[<p>Либо поздним связыванием:<br /></p><div class="codebox"><pre><code>Set objOutlook = WScript.CreateObject(&quot;Outlook.Application&quot;)</code></pre></div><p>либо ранним, установив ссылку на «Microsoft Outlook XXX Object Library», и объявив переменную:<br /></p><div class="codebox"><pre><code>Dim objOutlook As Outlook.Application</code></pre></div><p>Для VBA раннее связывание удобнее для программирования.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-02-15T07:07:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45162#p45162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45159#p45159" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p><span style="color: Green"><strong>Ganzales</strong>, ну Вам-то напоминать про необходимость оформления ссылок тэгами <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />… Я оформил.</span></p></blockquote></div><p>Спасибо огромное)) Испарвлюсь)</p><p>Вобщем нашел вот такой пример создания совещания:</p><div class="quotebox"><blockquote><p>Sub test2()<br />Set myItem = Application.CreateItem(1) &#039;Create an appointment<br />&nbsp; &nbsp; myItem.MeetingStatus = 1 &#039;Appointment is a meeting<br />&nbsp; &nbsp; myItem.Subject = &quot;Marketing Strategy Meeting&quot;<br />&nbsp; &nbsp; myItem.Location = &quot;Conference Room B&quot;<br />&nbsp; &nbsp; myItem.Start = #2/14/2011 6:30:00 PM#<br />&nbsp; &nbsp; myItem.Duration = 90<br />&nbsp; &nbsp; MyAttendee = InputBox(&quot;Enter name of Required Attendee&quot;)<br />&nbsp; &nbsp; If MyAttendee &lt;&gt; &quot;&quot; Then<br />&nbsp; &nbsp; &nbsp; &nbsp; Set myRequiredAttendee = myItem.Recipients.Add(MyAttendee)<br />&nbsp; &nbsp; &nbsp; &nbsp; myRequiredAttendee.Type = 1 &#039;Required<br />&nbsp; &nbsp; End If<br />&nbsp; &nbsp; MyAttendee = InputBox(&quot;Enter name of Optional Attendee&quot;)<br />&nbsp; &nbsp; If MyAttendee &lt;&gt; &quot;&quot; Then<br />&nbsp; &nbsp; &nbsp; &nbsp; Set myOptionalAttendee = myItem.Recipients.Add(MyAttendee)<br />&nbsp; &nbsp; &nbsp; &nbsp; myOptionalAttendee.Type = 2 &#039;Optional<br />&nbsp; &nbsp; End If<br />&nbsp; &nbsp; myItem.Send<br />End Sub</p></blockquote></div><p>Есть знатоки VBA, как обратиться к объекту оутлука из екселя?</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-15T06:38:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45159#p45159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45148#p45148" />
			<content type="html"><![CDATA[<p><span style="color: Green"><strong>Ganzales</strong>, ну Вам-то напоминать про необходимость оформления ссылок тэгами <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />… Я оформил.</span></p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-02-14T15:31:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45148#p45148</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45144#p45144" />
			<content type="html"><![CDATA[<p>Вот нашел такую статью: <a href="http://www.askit.ru/custom/vba_office/m13/13_06_outlook_items_objects.htm">Работа с сообщениями и контактами из VBA - AskIt.RU</a></p><p>Не вижу только объекта для элемента &quot;Событие&quot;, есть для Встречи, в принципе можно организовать через него, но много чего лишнего получиться.</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-14T14:34:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45144#p45144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45143#p45143" />
			<content type="html"><![CDATA[<p>Ну хотелось бы обойтись стредствами VBA, написать некий макрос, который будет забивать события из Excel документа.</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-14T13:54:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45143#p45143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45142#p45142" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Ganzales</strong>, какой язык?</span></p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-02-14T13:36:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45142#p45142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBA: Добавить событие в календарь Outlook]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=45141#p45141" />
			<content type="html"><![CDATA[<p>Кто нибудь задавался таким вопросом. Есть ли такая возможность?</p>]]></content>
			<author>
				<name><![CDATA[Ganzales]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=3401</uri>
			</author>
			<updated>2011-02-14T13:13:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=45141#p45141</id>
		</entry>
</feed>
