<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Как прописать адрес к ячейке эксель с указанием листа и книги.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14433</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14433&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Как прописать адрес к ячейке эксель с указанием листа и книги.».]]></description>
		<lastBuildDate>Sun, 23 Dec 2018 12:06:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Как прописать адрес к ячейке эксель с указанием листа и книги.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=130540#p130540</link>
			<description><![CDATA[<p>Добрый день.</p><p>Подскажите - куда эту строчку:<br /></p><div class="codebox"><pre><code>xl.Workbooks(&quot;1.xlsx&quot;).Worksheets(&quot;Лист1&quot;).Cells(1 ,1).select</code></pre></div><p>...добавить в код, чтобы сослаться на конкретную ячейку конкретного листа в книге ?</p><p>Если вот так добавлять, то не работает:<br /></p><div class="codebox"><pre><code>

#Persistent
global i := 0
XL := ComObjActive(&quot;Excel.Application&quot;)
Sheet := XL.Workbooks(&quot;1.xls&quot;).Worksheets(&quot;Лист1&quot;)
ComObjConnect(Sheet, Calculate)

   Calculate(cell) {
   	   XL := ComObjActive(&quot;Excel.Application&quot;)
     If (XL.Workbooks(&quot;1.xls&quot;).Worksheets(&quot;Лист1&quot;).Cells(1 ,1).Value = &quot;один&quot;) and (i = 0)
   msgbox Событие
    i := 1
    If (XL.Workbooks(&quot;1.xls&quot;).Worksheets(&quot;Лист1&quot;).Cells(1 ,1).Value = &quot;два&quot;)
      i := 0
   }

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yl3d)]]></author>
			<pubDate>Sun, 23 Dec 2018 12:06:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=130540#p130540</guid>
		</item>
	</channel>
</rss>
