<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Как прописать адрес к ячейке эксель с указанием листа и книги.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14433&amp;type=atom" />
	<updated>2018-12-23T12:06:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14433</id>
		<entry>
			<title type="html"><![CDATA[Как прописать адрес к ячейке эксель с указанием листа и книги.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=130540#p130540" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[yl3d]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39558</uri>
			</author>
			<updated>2018-12-23T12:06:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=130540#p130540</id>
		</entry>
</feed>
