Hallo
Ich habe über die Suche diverse Themen gefunden,
jedoch sieh ich nicht so ganz durch.
Ich habe eine Excel datei die jederzeit gefüllt wird.
Momentan sind 2601 Zeilen vorhanden.
Der Benutzer macht eine Eingabe $Input1 nun soll das Excel nach diesem wort durchgescannt werden.
Wenn das Wort in Tabelle A Gefunden wurde, soll er in der gleichen Zeile in der Tabelle H das Wort nehmen und als Variable speichern,
danach soll sich eine bestimmte URL mit dieser Variable öffnen.
Bis jetzt habe ich;
[autoit]
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <MsgBoxConstants.au3>
#include <Excel.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 411, 164, 192, 124)
$Label1 = GUICtrlCreateLabel("Domainname ?", 24, 48, 75, 17)
$Input1 = GUICtrlCreateInput("Domain", 120, 48, 217, 21)
$Button1 = GUICtrlCreateButton("OK", 104, 104, 209, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Case $Button1
_domainname()
EndSwitch
WEnd
Func _domainname()
$sFilePath1 = @ScriptDir & "X:\Domains.xls" ; Diese Datei sollte bereits existieren
$oExcel = _ExcelBookOpen($sFilePath1)
If @error = 1 Then
MsgBox(0, "Fehler!", "Das Excel-Objekt konnte nicht erstellt werden")
Exit
ElseIf @error = 2 Then
MsgBox(0, "Fehler!", "Die Datei existiert nicht!")
Exit
EndIf