<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Com_Excel_Snapes]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14108&amp;type=atom" />
	<updated>2018-08-24T16:57:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14108</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128236#p128236" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>xl.worksheets(1).Shapes.AddShape(9, l, t, w, h).Select</code></pre></div><p>а не t, l, h, w!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-24T16:57:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128236#p128236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128231#p128231" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>MyCell := xl.worksheets(1).cells(2,2)
t := MyCell.top 
l := MyCell.left
h := MyCell.Height
w := MyCell.Width
xl.worksheets(1).Shapes.AddShape(9, t, l, h, w).Select
xl.Selection.ShapeRange.Fill.Visible := 0
xl.Selection.ShapeRange.Line.Visible := -1
xl.Selection.ShapeRange.Line.weight :=2
xl.Selection.ShapeRange.Line.ForeColor.RGB := 0</code></pre></div><p>какая то хрень получается!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-24T12:56:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128231#p128231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128230#p128230" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong></p><p>Пробовал, не получается.</p><p>Вот это не могу настроить&nbsp; &nbsp;</p><div class="codebox"><pre><code>
t = ActiveCell.Top
l = ActiveCell.Left
h = ActiveCell.Height
w = ActiveCell.Width
ActiveSheet.Shapes.AddShape(msoShapeOval, l, t, w, h).Select</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-24T12:10:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128230#p128230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128229#p128229" />
			<content type="html"><![CDATA[<p>Выберите ячейку - Select. (Не проверял, эксела не стоит).</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-08-24T11:48:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128229#p128229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128228#p128228" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Спасибо!<br /></p><div class="codebox"><pre><code>
t = 10
l = 10
h = 10
w = 10
xl.worksheets(1).Shapes.AddShape(9, t, l, h ,w).Select
xl.Selection.ShapeRange.Fill.Visible := 0
xl.Selection.ShapeRange.Line.Visible := -1
xl.Selection.ShapeRange.Line.weight :=2
xl.Selection.ShapeRange.Line.ForeColor.RGB := 0</code></pre></div><p>Фигуру сделал нужную, вставить её в заданную ячейку не получается!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-24T11:32:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128228#p128228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128227#p128227" />
			<content type="html"><![CDATA[<p>Так а в чём проблема?<br />У вас же есть vba код.<br />Константы тут:<br /><a href="https://docs.microsoft.com/en-us/office/vba/api/office.msotristate">https://docs.microsoft.com/en-us/office … sotristate</a><br />Это:<br /></p><div class="codebox"><pre><code>With Selection.ShapeRange.Line
    .Visible = msoTrue
</code></pre></div><p>равнозначно:<br /></p><div class="codebox"><pre><code>Selection.ShapeRange.Line.Visible := -1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-08-24T09:26:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128227#p128227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128226#p128226" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong></p><p>Спасибо))Еще бы сделать фигуру прозрачной и с нужным цветом контура, еще и в заданной ячейки)</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-24T09:22:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128226#p128226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128225#p128225" />
			<content type="html"><![CDATA[<p>А откуда вы взяли метод AddShapeOval?<br /><a href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Shapes.AddShape">https://docs.microsoft.com/en-us/office … s.AddShape</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-08-24T08:50:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128225#p128225</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Com_Excel_Snapes]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128224#p128224" />
			<content type="html"><![CDATA[<p>Добрый день! Нигде не могу найти информацию по вставке фигур в excel, нашел vba (прям тот, который нужен). Возможно ли это переделать в ahk?<br /></p><div class="codebox"><pre><code>Sub Add_Oval_in_ActiveCell()
t = ActiveCell.Top
l = ActiveCell.Left
h = ActiveCell.Height
w = ActiveCell.Width
    ActiveSheet.Shapes.AddShape(msoShapeOval, l, t, w, h).Select
    Selection.ShapeRange.Fill.Visible = msoFalse
    With Selection.ShapeRange.Line
    .Visible = msoTrue
    .ForeColor.RGB = RGB(0, 0, 0)
    .Transparency = 0
    End With
    With Selection.ShapeRange.Line
    .Visible = msoTrue
    .Weight = 2.25
    End With
End Sub</code></pre></div><br /><div class="codebox"><pre><code>xl.activeSheet.Shapes.AddShapeOval(9, 10, 10, 10, 10).Select</code></pre></div><p> - не работает</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-24T08:42:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128224#p128224</id>
		</entry>
</feed>
