<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сохранение .xlsx]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13685&amp;type=atom" />
	<updated>2018-05-08T05:32:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13685</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125208#p125208" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong></p><p>СПС Большое, то, что нужно!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-05-08T05:32:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125208#p125208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125206#p125206" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-05-07T22:34:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125206#p125206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125205#p125205" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>И как?</p></blockquote></div><p>Это как в имени файла может присутствовать расширение этого файла, да и еще в точкой в начале.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-05-07T22:32:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125205#p125205</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125204#p125204" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><p>Можно через StringReplace.</p></blockquote></div><p>И как?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-05-07T22:17:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125204#p125204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125203#p125203" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>,&nbsp; tак я не спец в регулярных выражения. Можно через StringReplace.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-05-07T22:13:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125203#p125203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125202#p125202" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-05-07T22:00:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125202#p125202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125200#p125200" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-05-07T21:49:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125200#p125200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125177#p125177" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-05-07T09:15:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125177#p125177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сохранение .xlsx]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125175#p125175" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-05-07T07:46:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125175#p125175</id>
		</entry>
</feed>
