iamtech Posted March 18, 2019 Share Posted March 18, 2019 I want to send/write data into excel book using Gui created. My code : expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <WindowsConstants.au3> #include<File.au3> #include <Date.au3> #NoTrayIcon #RequireAdmin Local $iWidthCell = 100 $Form1 = GUICreate("form1", 550, 251, -1, -1) GUICtrlCreateLabel("Username: ", 30, 55, $iWidthCell) ; first cell 70 width $Input1 = GUICtrlCreateInput("", 100, 50, 400, 21) GUICtrlCreateLabel("Area Code: ", 30, 85, $iWidthCell) $Input2 = GUICtrlCreateInput("", 100, 80, 400, 21) GUICtrlCreateLabel("Village: ", 30, 115, $iWidthCell) $Input2 = GUICtrlCreateInput("", 100, 110, 400, 21) GUICtrlCreateLabel("Today's Date: ", 30, 145, $iWidthCell) $Input2 = GUICtrlCreateInput(_NowDate(), 100, 140, 400, 21) GUICtrlSetState(-1, $GUI_DISABLE) $Button1 = GUICtrlCreateButton("Save", 300, 188, 75, 25) GUICtrlSetTip(-1, "Save...") $Button2 = GUICtrlCreateButton("Exit", 400, 188, 75, 25) GUICtrlSetTip(-1, "Exit...") GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE FileClose($open) Exit Case $Button1 OK() Case $Button2 Close() EndSwitch WEnd Func OK() EndFunc Func Close() Exit EndFunc I don't know about Excel automation. Its Possible ? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 18, 2019 Share Posted March 18, 2019 @iamtech Take a look at Excel UDF in the Help file, especially at _Excel_RangeWrite() Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Nine Posted March 18, 2019 Share Posted March 18, 2019 yes totally possible look at Excel.au3 UDF in help file. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
iamtech Posted March 18, 2019 Author Share Posted March 18, 2019 (edited) Yes, But How can i use it with Gui ? and what happen if data already exist in first/second/third row. I want to send data only on empty row. Edited March 18, 2019 by iamtech Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 18, 2019 Share Posted March 18, 2019 1 minute ago, iamtech said: Yes, But How can i use it with Gui ? GUICtrlRead() to read values from the GUI, _Excel_RangeWrite() to write to the Worksheet. 2 minutes ago, iamtech said: and what happen if data already exist in first/second/third row. I want to send data only on empty row. This is a check that you have to do prior writing to the Sheet, but you can do everything with Excel UDF; just take a look at it and post the code related to Excel UDF if you have to ask something. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 10 minutes ago, iamtech said: Yes, But How can i use it with Gui ? and what happen if data already exist in first/second/third row. I want to send data only on empty row. @iamtech or should I say @naru? Do you seriously think we will allow your begging for code approach when you use 2 different accounts? You better read our forum rules now first and then PM me with which account you want to continue your life here. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Share Posted March 18, 2019 7 minutes ago, Jos said: @iamtech or should I say @naru? Do you seriously think we will allow your begging for code approach when you use 2 different accounts? You better read our forum rules now first and then PM me with which account you want to continue your life here. Jos Ohh ! i am Not @naru, Naru is my elder brother. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 Just now, naru said: Ohh ! i am Not @naru, Naru is my elder brother. mmmm... you know you are writing this with the Naru account, not iamtech ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Share Posted March 18, 2019 Just now, Jos said: mmmm... you know you are writing this with the Naru account, not iamtech ? Sorry, I handle his account Link to comment Share on other sites More sharing options...
iamtech Posted March 18, 2019 Author Share Posted March 18, 2019 1 minute ago, naru said: Sorry, I handle his account Yes, @naru is my brother and he was handle my account. You can remove my account @Jos, But keep my brother's Account Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 After a little research I know I am being played so simply will ban your both account. Do not attempt to create a new one. Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts