<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Сохранение .xlsx]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13685</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13685&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Сохранение .xlsx».]]></description>
		<lastBuildDate>Tue, 08 May 2018 05:32:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125208#p125208</link>
			<description><![CDATA[<p><strong>svoboden</strong></p><p>СПС Большое, то, что нужно!</p>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Tue, 08 May 2018 05:32:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125208#p125208</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125206#p125206</link>
			<description><![CDATA[<p>Ответ на свой вопрос вы можете получить загуглив &quot;допустимые символы в имени файлов&quot;.<br />Кстати в вашей регулярке и точка-то в названии файла необязательно должна присутствовать:<br /></p><div class="codebox"><pre><code>name := &quot;axlsxaxlsx&quot;
msgbox % Str := RegExReplace(name, &quot;.xlsx&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 07 May 2018 22:34:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125206#p125206</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125205#p125205</link>
			<description><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>И как?</p></blockquote></div><p>Это как в имени файла может присутствовать расширение этого файла, да и еще в точкой в начале.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Mon, 07 May 2018 22:32:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125205#p125205</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125204#p125204</link>
			<description><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><p>Можно через StringReplace.</p></blockquote></div><p>И как?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 07 May 2018 22:17:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125204#p125204</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125203#p125203</link>
			<description><![CDATA[<p><strong>Malcev</strong>,&nbsp; tак я не спец в регулярных выражения. Можно через StringReplace.</p>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Mon, 07 May 2018 22:13:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125203#p125203</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125202#p125202</link>
			<description><![CDATA[<p><strong>svoboden</strong><br /></p><div class="codebox"><pre><code>name := &quot;.xlsx.xlsx&quot;
msgbox % Str := RegExReplace(name, &quot;.xlsx&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 07 May 2018 22:00:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125202#p125202</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125200#p125200</link>
			<description><![CDATA[<p>Что за выполнения операций кода. Сохранять текущий файл можно так:<br /></p><div class="codebox"><pre><code>F12::
xl := ComObjActive(&quot;Excel.Application&quot;)
path := xl.ActiveWorkbook.path
name := xl.ActiveWorkbook.name
Str := RegExReplace(name, &quot;.xlsx&quot;)
file := path &quot;\&quot; Str &quot;_проверено&quot; &quot;.xlsx&quot;
xl.ActiveWorkbook.SaveAs(file, 51)
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Mon, 07 May 2018 21:49:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125200#p125200</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125177#p125177</link>
			<description><![CDATA[<p><a href="https://msdn.microsoft.com/en-us/vba/excel-vba/articles/workbook-object-excel">https://msdn.microsoft.com/en-us/vba/ex … ject-excel</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 07 May 2018 09:15:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125177#p125177</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Сохранение .xlsx]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125175#p125175</link>
			<description><![CDATA[<p>Добрый день! Подскажите пож-та, возможно ли после открытия экселевского файла, и выполнения операций кода в конце происходило &quot;сохранить как&quot; в туже директорию, откуда он открывался и с тем же именем+дополнение, например. файл был - &quot;....... 01 апреля.xlsx&quot;, а после сохранялся в новый файл в туже папку &quot;....... 01 апреля_проверено.xlsx&quot;</p><p>Шапка кода:<br /></p><div class="codebox"><pre><code>SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

$^1::
Setkeydelay, 35

Loginname = 
Password = 
ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
ie.Visible := true
ie.Navigate(&quot;.....&quot;)
while ie.readystate &lt;&gt; 4
	continue
ie.document.getElementsByTagName(&quot;input&quot;)[0].value := Loginname
ie.document.getElementsByTagName(&quot;input&quot;)[1].value := Password
ie.document.getElementsByTagName(&quot;input&quot;)[2].click()
Sleep 2000
ie.document.getElementsByTagName(&quot;a&quot;)[0].click()


; Выбор экселевскгого файла для проверки
FileSelectFile, Path, 3, , Open Excel File, Excel File (*.xls; *.xlsx)
if Path =
	ExitApp
Xl := ComObjCreate(&quot;Excel.Application&quot;)
Xl.Workbooks.Open(Path) ;open an existing file
Xl.Visible := True
if Errorlevel
{
	MsgBox, % &quot;Error opening excel file! Exiting...&quot;
	ExitApp
}

MsgBox, % &quot;Сделано!&quot;
ExitApp

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (inseption86)]]></author>
			<pubDate>Mon, 07 May 2018 07:46:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125175#p125175</guid>
		</item>
	</channel>
</rss>
