Jump to content

Recommended Posts

Posted (edited)

hi, I need help in understanding how I can read data from excel and pass it on to Mozilla firefox. the data i need to get from excel is url,

username and password.  tried below code but not sure about it.

#include <Excel.au3>
Local $oExcel = _Excel_BookOpen(@ScriptDir & "workbookinfo.xlsx", 0, 0)
 
$sCellValue = _Excel_RangeRead($oExcel, "B2")
$sCellValue2 = _Excel_RangeRead($oExcel, "C2")
$sCellValue3 = _Excel_RangeRead($oExcel, "D2")
 
$FF = @ProgramFilesDir & "Mozilla Firefoxfirefox.exe"
 
If FileExists($FF) Then
 
<stuck here> ?????
 
 
Else
 
MsgBox ($IDOK (1),"","no Firefox in this machine")
 
EndIf
Edited by GauravM
Posted

also tried this code, not sure how i can capture value from excel and pass it  as URL and login info in browser 

#include <Excel.au3>
Local $oExcel = _Excel_BookOpen(@ScriptDir & "workbookinfo.xlsx", 0, 0)
 
$sCellValue = _Excel_RangeRead($oExcel, "B2")
$sCellValue2 = _Excel_RangeRead($oExcel, "C2")
$sCellValue3 = _Excel_RangeRead($oExcel, "D2")
 
 
ShellExecute(@ProgramFilesDir & "Mozilla Firefoxfirefox.exe",$sCellValue,"","open",@SW_HIDE)
Posted

A backslash is missing, _Excel_Open is missing and _Excel_BookOpen needs an additional parameter.

Be aware that with AutoIt 3.3.12.0 a fully rewritten Excel UDF is being provided. Function names AND parameters have changed.

Local $oExcel = _Excel_Open()
Local $oBook = _Excel_BookOpen($oExcel, @ScriptDir & "\workbookinfo.xlsx", 0, 0)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

:)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...