Jump to content

Save Opened Excel Files


Recommended Posts

Hey folks,

I am needing to save an opened Excel file, but the issue that I am running into is that this instance of Excel won't have been opened via the Excel UDF.  I am exporting data as part of a web scrapping process I'm working on, and the data is put into a Excel file from my browser. Is there a way to simply attach an open Excel file to an Excel object in       AutoIT so that I can then use the Excel UDF to manipulate it?

Thanks in advance.

Link to comment
Share on other sites

Yeah that was what I have been attempting, but every example that I've found using _Excel_BookAttach was using a file that has already been saved, and the file is referenced by file path. When I export my scrapped data, it simply opens a new query in Excel and downloads it within the work book, but the workbook  has not been saved.  If I could just figure out how to script the saving of this workbook, I should be set as I have some VBA code that can handle everything else that I need to format my datasets. Am I able to use _Excel_BookAttach in this manner? 

Link to comment
Share on other sites

_Excel_BookAttach allows to attach by "Title - Title of the Excel window" as well.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...