<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: подпись outlook vbs]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11750&amp;type=atom" />
	<updated>2016-06-23T10:26:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11750</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: подпись outlook vbs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105479#p105479" />
			<content type="html"><![CDATA[<p>Если еще укажите префикс в заголовке &quot;VBS:&quot;, буду очень признателен <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p><p><strong>UPD</strong>: Благодарю за ознакомление с правилами.</p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2016-06-23T10:26:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105479#p105479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: подпись outlook vbs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105474#p105474" />
			<content type="html"><![CDATA[<p>Добрый день, посмотрите пожалуйста мою тему, правильно ли Я её оформил?</p>]]></content>
			<author>
				<name><![CDATA[pechkinlav]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34005</uri>
			</author>
			<updated>2016-06-23T06:22:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105474#p105474</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: подпись outlook vbs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105471#p105471" />
			<content type="html"><![CDATA[<p>Ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=10437">Правилами оформления</a>. </p><p><strong>Пока оформление не будет приведено в порядок, ответы будут удаляться. Если в течение 3 суток тема не будет оформлена должным образом, то будет удалена.</strong></p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2016-06-22T22:37:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105471#p105471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: подпись outlook vbs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105451#p105451" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>On Error Resume Next
Set objSysInfo = CreateObject(&quot;ADSystemInfo&quot;)

strUser = objSysInfo.UserName
Set objUser = GetObject(&quot;LDAP://&quot; &amp; strUser)
&#039;Логотип организации
strLogo = &quot;http://192.168.2.19/smart.gif&quot;
strRegard = &quot;С уважением, &quot;
&#039;Получаем полное имя
strName = objUser.FullName
&#039;Должность
strTitle = objUser.Title
&#039;Подразделение
strDepartment = objUser.Department
&#039;Компания
strCompany = objUser.Company
&#039;Номер телефона
strPhone = objUser.telephoneNumber
&#039;Сотовый
strMobile = objUser.mobile
&#039;Факс
strFax = objuser.facsimileTelephoneNumber
&#039;IP-телефон, у себя не использую, так как внутренний номер дописываю в поле основного телефона
strIntPhone = objuser.ipPhone
&#039;Получаем почтовый индекс
strPostIndex = ObjUser.postalCode
&#039;Город
strCity = objuser.l
&#039;Улица
strStreet = objuser.streetAddress
&#039;адрес электронной почты
strEmail = objuser.mail
&#039;WEB страница
strWeb = objuser.wWWHomePage
mine = &quot;---------------------&quot;

Set objWord = CreateObject(&quot;Word.Application&quot;)
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection
Set objEmailOptions = objWord.EmailOptions
Set objSignatureObject = objEmailOptions.EmailSignature
Set objSignatureEntries = objSignatureObject.EmailSignatureEntries
&#039;логотип компании
objSelection.InlineShapes.AddPicture(strLogo)
objSelection.TypeText CHR(11)
&#039;Задаем настройки шрифта
&#039;Шрифт
objSelection.Font.Name = &quot;Arial&quot;
&#039;Размер
objSelection.Font.Size = &quot;10&quot;
&#039;Цвет, можно указывать в десятичном или RGB формате, тогда: RGB(0, 55, 110)
objSelection.Font.Color = -738164481
&#039;Формат
objSelection.ParagraphFormat.Space1
objSelection.TypeText CHR(11)
objSelection.TypeText strRegard &amp; CHR(11)
objSelection.TypeText CHR(11)
&#039;Вставляем полное имя
objSelection.TypeText strName &amp; CHR(11)
&#039;Должность
objSelection.TypeText strTitle &amp; CHR(11)
&#039;Тирэ
objSelection.TypeText &quot;----------------------------------------&quot; &amp; CHR(11)
objSelection.Font.Size = &quot;9&quot;
objSelection.TypeText &quot;Компания &#039;СМАРТ&#039;&quot; &amp; CHR(11)
&#039;Подразделение
&#039;if (strDepartment&lt;&gt;&quot;&quot;) then objSelection.TypeText strDepartment &amp; CHR(11)
&#039;Компанию
&#039;objSelection.TypeText strCompan &amp; &quot;ООО &#039;Чмарт&#039; &quot; &amp;  CHR(11)
&#039;Уменьшаем размер шрифта

&#039;Почтовый адрес
objSelection.TypeText strPostIndex &amp; &quot;19999 Москва, Павелецкая набережная д. 2, оф. 310,  БЦ «River Side».&quot;
objSelection.TypeText CHR(11) 
&#039;Телефон
objSelection.TypeText &quot;Тел.: +7(495)980-90-66, доб &quot; &amp; strPhone &amp; CHR(11)
&#039;Сотовый
if (strMobile&lt;&gt;&quot;&quot;) then objSelection.TypeText &quot;Моб. тел.:&quot; &amp; strMobile &amp; CHR(11)
&#039;ICQ
&#039;if (strIntPhone&lt;&gt;&quot;&quot;) then objSelection.TypeText &quot;ICQ &quot; &amp; strIntPhone &amp; CHR(11)
&#039;Факс
&#039;objSelection.TypeText &quot;Факс &quot; &amp; strFax &amp; CHR(11)

&#039;Изменяем цвет для адреса электронной почты и сайта

&#039;Вставляем адрес почты
objSelection.TypeText &quot;E-mail: &quot;
objselection.font.color = RGB(0, 0, 255)
objSelection.Hyperlinks.Add objSelection.Range, &quot;mailto:&quot; &amp; strEmail, , , strEmail
objSelection.TypeText CHR(11)

&#039;корпоративный сайт
objselection.font.color = -738164481
objSelection.TypeText &quot;Web: &quot;
objselection.font.color = RGB(0, 0, 255)
objSelection.Hyperlinks.Add objSelection.Range, &quot;www.smartactive.ru&quot;
objSelection.TypeText CHR(11)


Set objSelection = objDoc.Range()

objSignatureEntries.Add &quot;Smart&quot;, objSelection
objSignatureObject.NewMessageSignature = &quot;mart&quot;
objSignatureObject.ReplyMessageSignature = &quot;mart&quot;

objDoc.Saved = True
objDoc.Close
objWord.Quit
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pechkinlav]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34005</uri>
			</author>
			<updated>2016-06-22T10:38:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105451#p105451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: подпись outlook vbs]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105450#p105450" />
			<content type="html"><![CDATA[<p>Добрый день!!!<br />Есть скрипт который генерит подпись outlook.<br />Скрипт во вложении.<br />Нужно сделать так чтобы:<br />логотип&nbsp; &nbsp; 114354, г.Москва, Павелецкая наб., д.2 БЦ &quot;Loft Ville&quot; офис 310 <br />логотип&nbsp; &nbsp; тел.: +7(499)999-89-31, моб.: номер мобильного телефона <br />логотип&nbsp; &nbsp; &nbsp;www.fenexmedia.ru | e-mail address<br />Очень буду благодарен за ответы.</p>]]></content>
			<author>
				<name><![CDATA[pechkinlav]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34005</uri>
			</author>
			<updated>2016-06-22T10:35:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105450#p105450</id>
		</entry>
</feed>
